From 667239e5bde414e0bcc96a6886517a7de6ec49ce Mon Sep 17 00:00:00 2001 From: Martin Taillefer Date: Fri, 22 Sep 2023 18:43:58 -0700 Subject: [PATCH] More renames --- .../AsyncStateHttpContextExtensions.cs | 10 - .../RequestCheckpointConstants.cs | 12 - .../RequestCheckpointExtensions.cs | 12 - .../RequestLatencyTelemetryExtensions.cs | 17 -- .../RequestLatencyTelemetryOptions.cs | 14 - .../HttpLoggingServiceExtensions.cs | 19 -- .../HttpLoggingTagNames.cs | 20 -- .../IHttpLogEnricher.cs | 11 - .../IncomingPathLoggingMode.cs | 9 - .../LoggingOptions.cs | 39 --- .../RequestHeadersEnricherExtensions.cs | 15 - .../RequestHeadersLogEnricherOptions.cs | 17 -- .../CommonHeaders.cs | 29 -- .../HeaderKey.cs | 13 - .../HeaderParser.cs | 12 - .../HeaderParsingExtensions.cs | 19 -- .../HeaderParsingFeature.cs | 18 -- .../HeaderParsingOptions.cs | 17 -- .../HeaderSetup.cs | 16 - .../HostHeaderValue.cs | 21 -- .../IHeaderRegistry.cs | 8 - .../ParsingResult.cs | 10 - .../ServiceFakesExtensions.cs | 20 -- .../ApplicationMetadata.cs | 17 -- .../ApplicationMetadataExtensions.cs | 17 -- .../AsyncStateExtensions.cs | 10 - .../AsyncStateToken.cs | 15 - .../IAsyncContext.cs | 12 - .../IAsyncLocalContext.cs | 12 - .../IAsyncState.cs | 15 - .../DataClassification.cs | 25 -- .../DataClassificationAttribute.cs | 14 - .../NoDataClassificationAttribute.cs | 8 - .../UnknownDataClassificationAttribute.cs | 8 - .../ErasingRedactor.cs | 14 - .../IRedactionBuilder.cs | 13 - .../IRedactorProvider.cs | 10 - .../NullRedactor.cs | 15 - .../NullRedactorProvider.cs | 13 - .../RedactionAbstractionsExtensions.cs | 13 - .../RedactionExtensions.cs | 21 -- .../Redactor.cs | 20 -- .../XxHash3RedactorOptions.cs | 11 - .../FakeClassifications.cs | 12 - .../FakeRedactionCollector.cs | 14 - .../FakeRedactionExtensions.cs | 20 -- .../FakeRedactor.cs | 18 -- .../FakeRedactorOptions.cs | 15 - .../FakeRedactorProvider.cs | 14 - .../FakeTaxonomy.cs | 14 - .../FakeTaxonomyExtensions.cs | 10 - .../PrivateDataAttribute.cs | 10 - .../PublicDataAttribute.cs | 10 - .../RedactedData.cs | 19 -- .../RedactorRequested.cs | 19 -- .../AutoActivationExtensions.cs | 40 --- .../EnricherExtensions.cs | 13 - .../IEnrichmentTagCollector.cs | 8 - .../ILogEnricher.cs | 8 - .../IStaticLogEnricher.cs | 8 - .../ProcessEnricherExtensions.cs | 15 - .../ProcessEnricherTagNames.cs | 13 - .../ProcessLogEnricherOptions.cs | 12 - .../ServiceEnricherExtensions.cs | 15 - .../ServiceEnricherTags.cs | 15 - .../ServiceLogEnricherOptions.cs | 14 - .../ExceptionSummarizationExtensions.cs | 13 - .../ExceptionSummary.cs | 20 -- .../IExceptionSummarizationBuilder.cs | 12 - .../IExceptionSummarizer.cs | 10 - .../IExceptionSummaryProvider.cs | 13 - .../CommonHealthChecksExtensions.cs | 21 -- .../IManualHealthCheck.T.cs | 9 - .../IManualHealthCheck.cs | 10 - .../ResourceUsageThresholds.cs | 15 - ...esourceUtilizationHealthCheckExtensions.cs | 21 -- .../ResourceUtilizationHealthCheckOptions.cs | 19 -- .../TelemetryHealthCheckPublisherOptions.cs | 11 - .../Checkpoint.cs | 19 -- .../CheckpointToken.cs | 12 - .../ILatencyContext.cs | 15 - .../ILatencyContextProvider.cs | 8 - .../ILatencyContextTokenIssuer.cs | 10 - .../ILatencyDataExporter.cs | 11 - .../LatencyConsoleExtensions.cs | 15 - .../LatencyConsoleOptions.cs | 13 - .../LatencyContextExtensions.cs | 15 - .../LatencyContextOptions.cs | 11 - .../LatencyContextRegistrationOptions.cs | 18 -- .../LatencyData.cs | 16 - .../LatencyRegistryExtensions.cs | 13 - .../Measure.cs | 18 -- .../MeasureToken.cs | 12 - .../NullLatencyContextExtensions.cs | 10 - .../Tag.cs | 12 - .../TagToken.cs | 12 - .../CollectedMeasurement.cs | 20 -- .../MeasurementExtensions.cs | 14 - .../MetricCollector.cs | 28 -- .../CounterAttribute.T.cs | 18 -- .../CounterAttribute.cs | 18 -- .../GaugeAttribute.cs | 18 -- .../HistogramAttribute.T.cs | 18 -- .../HistogramAttribute.cs | 18 -- .../Meter.cs | 13 - .../MetricsExtensions.cs | 12 - .../TagNameAttribute.cs | 13 - .../KubernetesProbesExtensions.cs | 14 - .../KubernetesProbesOptions.cs | 28 -- .../ProbeTags.cs | 10 - .../IResourceMonitor.cs | 10 - .../IResourceMonitorBuilder.cs | 11 - .../IResourceUtilizationPublisher.cs | 11 - .../ResourceMonitoringExtensions.cs | 18 -- .../ResourceMonitoringOptions.cs | 26 -- .../ResourceUtilization.cs | 15 - .../ResourceUtilizationCounters.cs | 9 - .../SystemResources.cs | 14 - .../EnumStringsAttribute.cs | 20 -- .../FakeHost.cs | 20 -- .../FakeHostOptions.cs | 18 -- .../HostingFakesExtensions.cs | 27 -- .../AutoClientAttribute.cs | 17 -- .../AutoClientException.cs | 15 - .../AutoClientHttpError.cs | 21 -- .../AutoClientOptions.cs | 14 - .../AutoClientOptionsValidator.cs | 16 - .../BodyAttribute.cs | 16 - .../BodyContentType.cs | 9 - .../DeleteAttribute.cs | 14 - .../GetAttribute.cs | 14 - .../HeadAttribute.cs | 14 - .../HeaderAttribute.cs | 15 - .../OptionsAttribute.cs | 14 - .../PatchAttribute.cs | 14 - .../PostAttribute.cs | 14 - .../PutAttribute.cs | 14 - .../QueryAttribute.cs | 16 - .../StaticHeaderAttribute.cs | 16 - .../HttpRouteParameterRedactionMode.cs | 10 - .../IDownstreamDependencyMetadata.cs | 12 - .../IOutgoingRequestContext.cs | 9 - .../RequestMetadata.cs | 15 - .../TelemetryConstants.cs | 12 - .../TelemetryExtensions.cs | 17 -- .../HttpClientLatencyTelemetryExtensions.cs | 16 - .../HttpClientLatencyTelemetryOptions.cs | 11 - .../HttpClientLoggingExtensions.cs | 20 -- .../HttpClientLoggingTagNames.cs | 20 -- .../IHttpClientLogEnricher.cs | 12 - .../LoggingOptions.cs | 34 --- .../OutgoingPathLoggingMode.cs | 9 - .../ContextExtensions.cs | 13 - .../HttpClientFaultInjectionExtensions.cs | 21 -- .../HttpFaultInjectionOptionsBuilder.cs | 19 -- .../IHttpClientChaosPolicyFactory.cs | 11 - .../Endpoint.cs | 13 - .../EndpointGroup.cs | 16 - .../HedgingEndpointOptions.cs | 21 -- .../HttpCircuitBreakerStrategyOptions.cs | 11 - .../HttpClientBuilderExtensions.cs | 20 -- .../HttpClientHedgingResiliencePredicates.cs | 13 - .../HttpClientResiliencePredicates.cs | 14 - .../HttpHedgingStrategyOptions.cs | 11 - .../HttpRateLimiterStrategyOptions.cs | 10 - .../HttpRequestMessageExtensions.cs | 12 - ...HttpResiliencePipelineBuilderExtensions.cs | 13 - .../HttpRetryStrategyOptions.cs | 12 - .../HttpStandardHedgingResilienceOptions.cs | 21 -- ...ndardResilienceBuilderBuilderExtensions.cs | 19 -- .../HttpStandardResilienceOptions.cs | 27 -- .../HttpTimeoutStrategyOptions.cs | 10 - .../IHttpResiliencePipelineBuilder.cs | 11 - .../IHttpStandardResiliencePipelineBuilder.cs | 11 - .../IRoutingStrategyBuilder.cs | 11 - .../IStandardHedgingHandlerBuilder.cs | 12 - .../OrderedGroupsRoutingOptions.cs | 17 -- .../ResilienceHandlerContext.cs | 15 - .../RoutingStrategyBuilderExtensions.cs | 21 -- ...StandardHedgingHandlerBuilderExtensions.cs | 19 -- .../WeightedEndpoint.cs | 16 - .../WeightedEndpointGroup.cs | 13 - .../WeightedGroupSelectionMode.cs | 9 - .../WeightedGroupsRoutingOptions.cs | 18 -- .../FakeLogCollector.cs | 21 -- .../FakeLogCollectorOptions.cs | 18 -- .../FakeLogRecord.cs | 23 -- .../FakeLogger.T.cs | 11 - .../FakeLogger.cs | 20 -- .../FakeLoggerExtensions.cs | 19 -- .../FakeLoggerProvider.cs | 21 -- .../ITagCollector.cs | 11 - .../LogMethodHelper.cs | 26 -- .../LogPropertiesAttribute.cs | 16 - .../LogPropertyIgnoreAttribute.cs | 13 - .../LoggerEnrichmentOptions.cs | 16 - .../LoggerMessageHelper.cs | 16 - .../LoggerMessageState.cs | 37 --- .../LoggingEnrichmentExtensions.cs | 13 - .../LoggingRedactionExtensions.cs | 8 - .../TagProviderAttribute.cs | 17 -- .../DependencyInjectionPoolOptions.cs | 13 - .../ObjectPoolServiceCollectionExtensions.cs | 17 -- ...xtualOptionsServiceCollectionExtensions.cs | 22 -- .../IConfigureContextualOptions.cs | 10 - .../IContextualOptions.cs | 11 - .../IContextualOptionsFactory.cs | 11 - .../ILoadContextualOptions.cs | 11 - .../INamedContextualOptions.cs | 11 - .../IOptionsContext.cs | 8 - .../IOptionsContextReceiver.cs | 8 - .../IPostConfigureContextualOptions.cs | 8 - .../IValidateContextualOptions.cs | 8 - .../NullConfigureContextualOptions.cs | 8 - .../OptionsContextAttribute.cs | 13 - .../ChaosPolicyOptionsBase.cs | 14 - .../ChaosPolicyOptionsGroup.cs | 21 -- .../CustomResultPolicyOptions.cs | 15 - .../ExceptionPolicyOptions.cs | 11 - .../FaultInjectionExtensions.cs | 21 -- .../FaultInjectionOptions.cs | 12 - .../FaultInjectionOptionsBuilder.cs | 19 -- .../FaultPolicyWeightAssignmentsOptions.cs | 14 - .../HttpResponseInjectionPolicyOptions.cs | 15 - .../IChaosPolicyFactory.cs | 15 - .../IFaultInjectionOptionsProvider.cs | 10 - .../InjectedFaultException.cs | 12 - .../LatencyPolicyOptions.cs | 14 - .../FailureResultContext.cs | 13 - .../ResilienceContextExtensions.cs | 14 - .../ResilienceServiceCollectionExtensions.cs | 14 - .../FakeTimeProvider.cs | 25 -- .../AsyncStateHttpContextExtensions.cs | 20 -- .../RequestCheckpointConstants.cs | 34 --- .../RequestCheckpointExtensions.cs | 26 -- .../RequestLatencyTelemetryExtensions.cs | 49 ---- .../RequestLatencyTelemetryOptions.cs | 24 -- .../HttpLoggingServiceExtensions.cs | 68 ----- .../HttpLoggingTagNames.cs | 63 ---- .../IHttpLogEnricher.cs | 20 -- .../IncomingPathLoggingMode.cs | 18 -- .../LoggingOptions.cs | 198 ------------- .../RequestHeadersEnricherExtensions.cs | 41 --- .../RequestHeadersLogEnricherOptions.cs | 27 -- .../CommonHeaders.cs | 99 ------- .../HeaderKey.cs | 27 -- .../HeaderParser.cs | 24 -- .../HeaderParsingExtensions.cs | 66 ----- .../HeaderParsingFeature.cs | 37 --- .../HeaderParsingOptions.cs | 42 --- .../HeaderSetup.cs | 51 ---- .../HostHeaderValue.cs | 86 ------ .../IHeaderRegistry.cs | 18 -- .../ParsingResult.cs | 22 -- .../ServiceFakesExtensions.cs | 57 ---- .../ApplicationMetadata.cs | 36 --- .../ApplicationMetadataExtensions.cs | 54 ---- .../AsyncStateExtensions.cs | 19 -- .../AsyncStateToken.cs | 48 --- .../IAsyncContext.cs | 41 --- .../IAsyncLocalContext.cs | 17 -- .../IAsyncState.cs | 54 ---- .../DataClassification.cs | 110 ------- .../DataClassificationAttribute.cs | 30 -- .../NoDataClassificationAttribute.cs | 14 - .../UnknownDataClassificationAttribute.cs | 14 - .../ErasingRedactor.cs | 25 -- .../IRedactionBuilder.cs | 33 --- .../IRedactorProvider.cs | 18 -- .../NullRedactor.cs | 28 -- .../NullRedactorProvider.cs | 22 -- .../RedactionAbstractionsExtensions.cs | 38 --- .../RedactionExtensions.cs | 82 ------ .../Redactor.cs | 110 ------- .../XxHash3RedactorOptions.cs | 26 -- .../FakeClassifications.cs | 26 -- .../FakeRedactionCollector.cs | 35 --- .../FakeRedactionExtensions.cs | 74 ----- .../FakeRedactor.cs | 41 --- .../FakeRedactorOptions.cs | 26 -- .../FakeRedactorProvider.cs | 28 -- .../FakeTaxonomy.cs | 29 -- .../FakeTaxonomyExtensions.cs | 18 -- .../PrivateDataAttribute.cs | 16 - .../PublicDataAttribute.cs | 16 - .../RedactedData.cs | 71 ----- .../RedactorRequested.cs | 66 ----- .../AutoActivationExtensions.cs | 276 ------------------ .../EnricherExtensions.cs | 47 --- .../IEnrichmentTagCollector.cs | 46 --- .../ILogEnricher.cs | 15 - .../IStaticLogEnricher.cs | 15 - .../ProcessEnricherExtensions.cs | 40 --- .../ProcessEnricherTagNames.cs | 28 -- .../ProcessLogEnricherOptions.cs | 29 -- .../ServiceEnricherExtensions.cs | 40 --- .../ServiceEnricherTags.cs | 38 --- .../ServiceLogEnricherOptions.cs | 45 --- .../ExceptionSummarizationExtensions.cs | 37 --- .../ExceptionSummary.cs | 91 ------ .../IExceptionSummarizationBuilder.cs | 24 -- .../IExceptionSummarizer.cs | 18 -- .../IExceptionSummaryProvider.cs | 39 --- .../CommonHealthChecksExtensions.cs | 90 ------ .../IManualHealthCheck.T.cs | 13 - .../IManualHealthCheck.cs | 16 - .../ResourceUsageThresholds.cs | 32 -- ...esourceUtilizationHealthCheckExtensions.cs | 91 ------ .../ResourceUtilizationHealthCheckOptions.cs | 45 --- .../TelemetryHealthCheckPublisherOptions.cs | 22 -- .../Checkpoint.cs | 76 ----- .../CheckpointToken.cs | 29 -- .../ILatencyContext.cs | 68 ----- .../ILatencyContextProvider.cs | 15 - .../ILatencyContextTokenIssuer.cs | 34 --- .../ILatencyDataExporter.cs | 21 -- .../LatencyConsoleExtensions.cs | 40 --- .../LatencyConsoleOptions.cs | 37 --- .../LatencyContextExtensions.cs | 37 --- .../LatencyContextOptions.cs | 21 -- .../LatencyContextRegistrationOptions.cs | 33 --- .../LatencyData.cs | 47 --- .../LatencyRegistryExtensions.cs | 39 --- .../Measure.cs | 70 ----- .../MeasureToken.cs | 29 -- .../NullLatencyContextExtensions.cs | 19 -- .../Tag.cs | 28 -- .../TagToken.cs | 29 -- .../CollectedMeasurement.cs | 59 ---- .../MeasurementExtensions.cs | 55 ---- .../MetricCollector.cs | 107 ------- .../CounterAttribute.T.cs | 79 ----- .../CounterAttribute.cs | 75 ----- .../GaugeAttribute.cs | 75 ----- .../HistogramAttribute.T.cs | 81 ----- .../HistogramAttribute.cs | 75 ----- .../Meter.cs | 20 -- .../MetricsExtensions.cs | 20 -- .../TagNameAttribute.cs | 41 --- .../KubernetesProbesExtensions.cs | 36 --- .../KubernetesProbesOptions.cs | 84 ------ .../ProbeTags.cs | 24 -- .../IResourceMonitor.cs | 21 -- .../IResourceMonitorBuilder.cs | 23 -- .../IResourceUtilizationPublisher.cs | 20 -- .../ResourceMonitoringExtensions.cs | 51 ---- .../ResourceMonitoringOptions.cs | 89 ------ .../ResourceUtilization.cs | 46 --- .../ResourceUtilizationCounters.cs | 29 -- .../SystemResources.cs | 50 ---- .../EnumStringsAttribute.cs | 76 ----- .../FakeHost.cs | 62 ---- .../FakeHostOptions.cs | 60 ---- .../HostingFakesExtensions.cs | 83 ------ .../AutoClientAttribute.cs | 57 ---- .../AutoClientException.cs | 60 ---- .../AutoClientHttpError.cs | 58 ---- .../AutoClientOptions.cs | 32 -- .../AutoClientOptionsValidator.cs | 30 -- .../BodyAttribute.cs | 48 --- .../BodyContentType.cs | 24 -- .../DeleteAttribute.cs | 63 ---- .../GetAttribute.cs | 63 ---- .../HeadAttribute.cs | 63 ---- .../HeaderAttribute.cs | 39 --- .../OptionsAttribute.cs | 63 ---- .../PatchAttribute.cs | 63 ---- .../PostAttribute.cs | 63 ---- .../PutAttribute.cs | 63 ---- .../QueryAttribute.cs | 47 --- .../StaticHeaderAttribute.cs | 49 ---- .../HttpRouteParameterRedactionMode.cs | 28 -- .../IDownstreamDependencyMetadata.cs | 26 -- .../IOutgoingRequestContext.cs | 21 -- .../RequestMetadata.cs | 74 ----- .../TelemetryConstants.cs | 34 --- .../TelemetryExtensions.cs | 57 ---- .../HttpClientLatencyTelemetryExtensions.cs | 53 ---- .../HttpClientLatencyTelemetryOptions.cs | 24 -- .../HttpClientLoggingExtensions.cs | 105 ------- .../HttpClientLoggingTagNames.cs | 63 ---- .../IHttpClientLogEnricher.cs | 26 -- .../LoggingOptions.cs | 130 --------- .../OutgoingPathLoggingMode.cs | 18 -- .../ContextExtensions.cs | 24 -- .../HttpClientFaultInjectionExtensions.cs | 99 ------- .../HttpFaultInjectionOptionsBuilder.cs | 78 ----- .../IHttpClientChaosPolicyFactory.cs | 21 -- .../Endpoint.cs | 23 -- .../EndpointGroup.cs | 28 -- .../HedgingEndpointOptions.cs | 49 ---- .../HttpCircuitBreakerStrategyOptions.cs | 21 -- .../HttpClientBuilderExtensions.cs | 118 -------- .../HttpClientHedgingResiliencePredicates.cs | 23 -- .../HttpClientResiliencePredicates.cs | 31 -- .../HttpHedgingStrategyOptions.cs | 21 -- .../HttpRateLimiterStrategyOptions.cs | 13 - .../HttpRequestMessageExtensions.cs | 26 -- ...HttpResiliencePipelineBuilderExtensions.cs | 31 -- .../HttpRetryStrategyOptions.cs | 34 --- .../HttpStandardHedgingResilienceOptions.cs | 69 ----- ...ndardResilienceBuilderBuilderExtensions.cs | 58 ---- .../HttpStandardResilienceOptions.cs | 81 ----- .../HttpTimeoutStrategyOptions.cs | 13 - .../IHttpResiliencePipelineBuilder.cs | 21 -- .../IHttpStandardResiliencePipelineBuilder.cs | 21 -- .../IRoutingStrategyBuilder.cs | 21 -- .../IStandardHedgingHandlerBuilder.cs | 26 -- .../OrderedGroupsRoutingOptions.cs | 27 -- .../ResilienceHandlerContext.cs | 42 --- .../RoutingStrategyBuilderExtensions.cs | 77 ----- ...StandardHedgingHandlerBuilderExtensions.cs | 58 ---- .../WeightedEndpoint.cs | 33 --- .../WeightedEndpointGroup.cs | 23 -- .../WeightedGroupSelectionMode.cs | 19 -- .../WeightedGroupsRoutingOptions.cs | 33 --- .../FakeLogCollector.cs | 62 ---- .../FakeLogCollectorOptions.cs | 64 ---- .../FakeLogRecord.cs | 93 ------ .../FakeLogger.T.cs | 28 -- .../FakeLogger.cs | 83 ------ .../FakeLoggerExtensions.cs | 68 ----- .../FakeLoggerProvider.cs | 56 ---- .../ITagCollector.cs | 37 --- .../LogMethodHelper.cs | 80 ----- .../LogPropertiesAttribute.cs | 34 --- .../LogPropertyIgnoreAttribute.cs | 17 -- .../LoggerEnrichmentOptions.cs | 66 ----- .../LoggerMessageHelper.cs | 40 --- .../LoggerMessageState.cs | 121 -------- .../LoggingEnrichmentExtensions.cs | 35 --- .../LoggingRedactionExtensions.cs | 16 - .../TagProviderAttribute.cs | 81 ----- .../DependencyInjectionPoolOptions.cs | 23 -- .../ObjectPoolServiceCollectionExtensions.cs | 61 ---- ...xtualOptionsServiceCollectionExtensions.cs | 108 ------- .../IConfigureContextualOptions.cs | 18 -- .../IContextualOptions.cs | 22 -- .../IContextualOptionsFactory.cs | 23 -- .../ILoadContextualOptions.cs | 23 -- .../INamedContextualOptions.cs | 23 -- .../IOptionsContext.cs | 16 - .../IOptionsContextReceiver.cs | 17 -- .../IPostConfigureContextualOptions.cs | 19 -- .../IValidateContextualOptions.cs | 18 -- .../NullConfigureContextualOptions.cs | 16 - .../OptionsContextAttribute.cs | 16 - .../ChaosPolicyOptionsBase.cs | 38 --- .../ChaosPolicyOptionsGroup.cs | 49 ---- .../CustomResultPolicyOptions.cs | 29 -- .../ExceptionPolicyOptions.cs | 23 -- .../FaultInjectionExtensions.cs | 99 ------- .../FaultInjectionOptions.cs | 19 -- .../FaultInjectionOptionsBuilder.cs | 87 ------ .../FaultPolicyWeightAssignmentsOptions.cs | 25 -- .../HttpResponseInjectionPolicyOptions.cs | 32 -- .../IChaosPolicyFactory.cs | 41 --- .../IFaultInjectionOptionsProvider.cs | 27 -- .../InjectedFaultException.cs | 32 -- .../LatencyPolicyOptions.cs | 25 -- .../FailureResultContext.cs | 35 --- .../ResilienceContextExtensions.cs | 30 -- .../ResilienceServiceCollectionExtensions.cs | 48 --- .../FakeTimeProvider.cs | 98 ------- .../{Internal => }/FakeConfigurationSource.cs | 2 +- .../FakeHost.cs | 1 - .../{Internal => }/FakeHostBuilder.cs | 3 +- .../{Internal => }/HostTerminatorService.cs | 2 +- .../HostingFakesExtensions.cs | 2 - ...icrosoft.Extensions.Hosting.Testing.csproj | 4 +- .../{Methods => }/DeleteAttribute.cs | 0 .../{Methods => }/GetAttribute.cs | 0 .../{Methods => }/HeadAttribute.cs | 0 ...icrosoft.Extensions.Http.AutoClient.csproj | 2 +- .../{Methods => }/OptionsAttribute.cs | 0 .../{Methods => }/PatchAttribute.cs | 0 .../{Methods => }/PostAttribute.cs | 0 .../{Methods => }/PutAttribute.cs | 0 ...icrosoft.Extensions.Http.Resilience.csproj | 4 - ...ions.ObjectPool.DependencyInjection.csproj | 1 - ...rosoft.Extensions.Telemetry.Testing.csproj | 1 - ...oft.Extensions.TimeProvider.Testing.csproj | 1 - ...est.cs => FakeConfigurationSourceTests.cs} | 3 +- ...BuilderTest.cs => FakeHostBuilderTests.cs} | 3 +- .../{FakeHostTest.cs => FakeHostTests.cs} | 2 +- ...eTest.cs => HostTerminatorServiceTests.cs} | 3 +- ...Test.cs => HostingFakesExtensionsTests.cs} | 3 +- .../TestResources/DependentClass.cs | 2 +- ...ft.Extensions.Http.Resilience.Tests.csproj | 5 +- ... => DependencyInjectionExtensionsTests.cs} | 2 +- ...bjectPool.DependencyInjection.Tests.csproj | 1 - .../{AcceptanceTest.cs => AcceptanceTests.cs} | 2 +- .../ContextualOptionsFactoryTests.cs | 2 +- ...OptionsServiceCollectionExtensionsTests.cs | 2 +- ...Extensions.Options.Contextual.Tests.csproj | 2 +- .../Logging/FakeLogCollectorOptionsTests.cs | 2 +- .../Logging/FakeLogCollectorTests.cs | 2 +- .../Logging/FakeLoggerExtensionsTests.cs | 2 +- .../Logging/FakeLoggerProviderTests.cs | 4 +- .../Logging/FakeLoggerTests.cs | 2 +- .../Logging/TestLog.cs | 2 +- ....Extensions.Telemetry.Testing.Tests.csproj | 6 +- ...tensions.TimeProvider.Testing.Tests.csproj | 2 +- 503 files changed, 28 insertions(+), 14114 deletions(-) delete mode 100644 API/NoDocs/Microsoft.AspNetCore.AsyncState/AsyncStateHttpContextExtensions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointConstants.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointExtensions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryExtensions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryOptions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingServiceExtensions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingTagNames.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/IHttpLogEnricher.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/IncomingPathLoggingMode.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/LoggingOptions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/RequestHeadersEnricherExtensions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Diagnostics/RequestHeadersLogEnricherOptions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/CommonHeaders.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderKey.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParser.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingExtensions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingFeature.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingOptions.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderSetup.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HostHeaderValue.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/IHeaderRegistry.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.HeaderParsing/ParsingResult.cs delete mode 100644 API/NoDocs/Microsoft.AspNetCore.Testing/ServiceFakesExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadata.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadataExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.AsyncState/AsyncStateExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.AsyncState/AsyncStateToken.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncContext.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncLocalContext.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncState.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Classification/DataClassification.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Classification/DataClassificationAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Classification/NoDataClassificationAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Classification/UnknownDataClassificationAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/ErasingRedactor.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/IRedactionBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/IRedactorProvider.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactor.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactorProvider.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/RedactionAbstractionsExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/RedactionExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/Redactor.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Redaction/XxHash3RedactorOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeClassifications.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionCollector.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactor.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorProvider.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomy.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomyExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/PrivateDataAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/PublicDataAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/RedactedData.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Compliance.Testing/RedactorRequested.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.DependencyInjection/AutoActivationExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/EnricherExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/IEnrichmentTagCollector.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ILogEnricher.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/IStaticLogEnricher.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherTagNames.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessLogEnricherOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherTags.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceLogEnricherOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummarizationExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummary.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizationBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizer.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummaryProvider.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/CommonHealthChecksExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.T.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUsageThresholds.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/TelemetryHealthCheckPublisherOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Checkpoint.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/CheckpointToken.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContext.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextProvider.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextTokenIssuer.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyDataExporter.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextRegistrationOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyData.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyRegistryExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Measure.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/MeasureToken.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/NullLatencyContextExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Tag.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/TagToken.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/CollectedMeasurement.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MeasurementExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MetricCollector.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.T.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/GaugeAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.T.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/Meter.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/MetricsExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/TagNameAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/ProbeTags.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitor.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitorBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilization.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationCounters.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/SystemResources.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.EnumStrings/EnumStringsAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Hosting.Testing/FakeHost.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Hosting.Testing/FakeHostOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientException.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientHttpError.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptionsValidator.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/BodyAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/BodyContentType.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/HeaderAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/QueryAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.AutoClient/StaticHeaderAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Diagnostics/HttpRouteParameterRedactionMode.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Diagnostics/IDownstreamDependencyMetadata.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Diagnostics/IOutgoingRequestContext.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Diagnostics/RequestMetadata.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryConstants.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingTagNames.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Logging/IHttpClientLogEnricher.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Logging/LoggingOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Logging/OutgoingPathLoggingMode.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/ContextExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpClientFaultInjectionExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpFaultInjectionOptionsBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/IHttpClientChaosPolicyFactory.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/Endpoint.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/EndpointGroup.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HedgingEndpointOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpCircuitBreakerStrategyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientBuilderExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientHedgingResiliencePredicates.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientResiliencePredicates.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpHedgingStrategyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRateLimiterStrategyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRequestMessageExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpResiliencePipelineBuilderExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRetryStrategyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardHedgingResilienceOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceBuilderBuilderExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpTimeoutStrategyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/IHttpResiliencePipelineBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/IHttpStandardResiliencePipelineBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/IRoutingStrategyBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/IStandardHedgingHandlerBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/OrderedGroupsRoutingOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/ResilienceHandlerContext.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/RoutingStrategyBuilderExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/StandardHedgingHandlerBuilderExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpoint.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpointGroup.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupSelectionMode.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupsRoutingOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollector.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollectorOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogRecord.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.T.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerProvider.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/ITagCollector.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/LogMethodHelper.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/LogPropertiesAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/LogPropertyIgnoreAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/LoggerEnrichmentOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/LoggerMessageHelper.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/LoggerMessageState.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/LoggingEnrichmentExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/LoggingRedactionExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Logging/TagProviderAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.ObjectPool/DependencyInjectionPoolOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.ObjectPool/ObjectPoolServiceCollectionExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/ContextualOptionsServiceCollectionExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/IConfigureContextualOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/IContextualOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/IContextualOptionsFactory.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/ILoadContextualOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/INamedContextualOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/IOptionsContext.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/IOptionsContextReceiver.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/IPostConfigureContextualOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/IValidateContextualOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/NullConfigureContextualOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Options.Contextual/OptionsContextAttribute.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsBase.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsGroup.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/CustomResultPolicyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ExceptionPolicyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptionsBuilder.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultPolicyWeightAssignmentsOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/HttpResponseInjectionPolicyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/IChaosPolicyFactory.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/IFaultInjectionOptionsProvider.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/InjectedFaultException.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/LatencyPolicyOptions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience/FailureResultContext.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience/ResilienceContextExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Resilience/ResilienceServiceCollectionExtensions.cs delete mode 100644 API/NoDocs/Microsoft.Extensions.Time.Testing/FakeTimeProvider.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.AsyncState/AsyncStateHttpContextExtensions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointConstants.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointExtensions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryExtensions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryOptions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingServiceExtensions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingTagNames.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/IHttpLogEnricher.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/IncomingPathLoggingMode.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/LoggingOptions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/RequestHeadersEnricherExtensions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Diagnostics/RequestHeadersLogEnricherOptions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/CommonHeaders.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderKey.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParser.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingExtensions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingFeature.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingOptions.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderSetup.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HostHeaderValue.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/IHeaderRegistry.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.HeaderParsing/ParsingResult.cs delete mode 100644 API/WithDocs/Microsoft.AspNetCore.Testing/ServiceFakesExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadata.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadataExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.AsyncState/AsyncStateExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.AsyncState/AsyncStateToken.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncContext.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncLocalContext.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncState.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Classification/DataClassification.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Classification/DataClassificationAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Classification/NoDataClassificationAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Classification/UnknownDataClassificationAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/ErasingRedactor.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/IRedactionBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/IRedactorProvider.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactor.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactorProvider.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/RedactionAbstractionsExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/RedactionExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/Redactor.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Redaction/XxHash3RedactorOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeClassifications.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionCollector.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactor.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorProvider.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomy.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomyExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/PrivateDataAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/PublicDataAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/RedactedData.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Compliance.Testing/RedactorRequested.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.DependencyInjection/AutoActivationExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/EnricherExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/IEnrichmentTagCollector.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ILogEnricher.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/IStaticLogEnricher.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherTagNames.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessLogEnricherOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherTags.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceLogEnricherOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummarizationExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummary.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizationBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizer.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummaryProvider.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/CommonHealthChecksExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.T.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUsageThresholds.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/TelemetryHealthCheckPublisherOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Checkpoint.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/CheckpointToken.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContext.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextProvider.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextTokenIssuer.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyDataExporter.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextRegistrationOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyData.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyRegistryExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Measure.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/MeasureToken.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/NullLatencyContextExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Tag.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/TagToken.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/CollectedMeasurement.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MeasurementExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MetricCollector.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.T.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/GaugeAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.T.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/Meter.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/MetricsExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/TagNameAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/ProbeTags.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitor.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitorBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilization.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationCounters.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/SystemResources.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.EnumStrings/EnumStringsAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Hosting.Testing/FakeHost.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Hosting.Testing/FakeHostOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientException.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientHttpError.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptionsValidator.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/BodyAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/BodyContentType.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/HeaderAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/QueryAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.AutoClient/StaticHeaderAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Diagnostics/HttpRouteParameterRedactionMode.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Diagnostics/IDownstreamDependencyMetadata.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Diagnostics/IOutgoingRequestContext.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Diagnostics/RequestMetadata.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryConstants.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingTagNames.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Logging/IHttpClientLogEnricher.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Logging/LoggingOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Logging/OutgoingPathLoggingMode.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/ContextExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpClientFaultInjectionExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpFaultInjectionOptionsBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/IHttpClientChaosPolicyFactory.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/Endpoint.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/EndpointGroup.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HedgingEndpointOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpCircuitBreakerStrategyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientBuilderExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientHedgingResiliencePredicates.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientResiliencePredicates.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpHedgingStrategyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRateLimiterStrategyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRequestMessageExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpResiliencePipelineBuilderExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRetryStrategyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardHedgingResilienceOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceBuilderBuilderExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpTimeoutStrategyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/IHttpResiliencePipelineBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/IHttpStandardResiliencePipelineBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/IRoutingStrategyBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/IStandardHedgingHandlerBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/OrderedGroupsRoutingOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/ResilienceHandlerContext.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/RoutingStrategyBuilderExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/StandardHedgingHandlerBuilderExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpoint.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpointGroup.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupSelectionMode.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupsRoutingOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollector.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollectorOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogRecord.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.T.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerProvider.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/ITagCollector.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/LogMethodHelper.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/LogPropertiesAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/LogPropertyIgnoreAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/LoggerEnrichmentOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/LoggerMessageHelper.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/LoggerMessageState.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/LoggingEnrichmentExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/LoggingRedactionExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Logging/TagProviderAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.ObjectPool/DependencyInjectionPoolOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.ObjectPool/ObjectPoolServiceCollectionExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/ContextualOptionsServiceCollectionExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/IConfigureContextualOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/IContextualOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/IContextualOptionsFactory.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/ILoadContextualOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/INamedContextualOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/IOptionsContext.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/IOptionsContextReceiver.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/IPostConfigureContextualOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/IValidateContextualOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/NullConfigureContextualOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Options.Contextual/OptionsContextAttribute.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsBase.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsGroup.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/CustomResultPolicyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ExceptionPolicyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptionsBuilder.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultPolicyWeightAssignmentsOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/HttpResponseInjectionPolicyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/IChaosPolicyFactory.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/IFaultInjectionOptionsProvider.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/InjectedFaultException.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/LatencyPolicyOptions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience/FailureResultContext.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience/ResilienceContextExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Resilience/ResilienceServiceCollectionExtensions.cs delete mode 100644 API/WithDocs/Microsoft.Extensions.Time.Testing/FakeTimeProvider.cs rename src/Libraries/Microsoft.Extensions.Hosting.Testing/{Internal => }/FakeConfigurationSource.cs (88%) rename src/Libraries/Microsoft.Extensions.Hosting.Testing/{Internal => }/FakeHostBuilder.cs (97%) rename src/Libraries/Microsoft.Extensions.Hosting.Testing/{Internal => }/HostTerminatorService.cs (97%) rename src/Libraries/Microsoft.Extensions.Http.AutoClient/{Methods => }/DeleteAttribute.cs (100%) rename src/Libraries/Microsoft.Extensions.Http.AutoClient/{Methods => }/GetAttribute.cs (100%) rename src/Libraries/Microsoft.Extensions.Http.AutoClient/{Methods => }/HeadAttribute.cs (100%) rename src/Libraries/Microsoft.Extensions.Http.AutoClient/{Methods => }/OptionsAttribute.cs (100%) rename src/Libraries/Microsoft.Extensions.Http.AutoClient/{Methods => }/PatchAttribute.cs (100%) rename src/Libraries/Microsoft.Extensions.Http.AutoClient/{Methods => }/PostAttribute.cs (100%) rename src/Libraries/Microsoft.Extensions.Http.AutoClient/{Methods => }/PutAttribute.cs (100%) rename test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/{FakeConfigurationSourceTest.cs => FakeConfigurationSourceTests.cs} (92%) rename test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/{FakeHostBuilderTest.cs => FakeHostBuilderTests.cs} (98%) rename test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/{FakeHostTest.cs => FakeHostTests.cs} (99%) rename test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/{HostTerminatorServiceTest.cs => HostTerminatorServiceTests.cs} (96%) rename test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/{HostingFakesExtensionsTest.cs => HostingFakesExtensionsTests.cs} (99%) rename test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/{DependencyInjectionExtensionsTest.cs => DependencyInjectionExtensionsTests.cs} (99%) rename test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/{AcceptanceTest.cs => AcceptanceTests.cs} (99%) diff --git a/API/NoDocs/Microsoft.AspNetCore.AsyncState/AsyncStateHttpContextExtensions.cs b/API/NoDocs/Microsoft.AspNetCore.AsyncState/AsyncStateHttpContextExtensions.cs deleted file mode 100644 index f9a706eedca..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.AsyncState/AsyncStateHttpContextExtensions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.AsyncState' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.AsyncState; - -public static class AsyncStateHttpContextExtensions -{ - public static IServiceCollection AddAsyncStateHttpContext(this IServiceCollection services); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointConstants.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointConstants.cs deleted file mode 100644 index 92b3019480d..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointConstants.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -namespace Microsoft.AspNetCore.Diagnostics.Latency; - -public static class RequestCheckpointConstants -{ - public const string ElapsedTillHeaders = "elthdr"; - public const string ElapsedTillFinished = "eltltf"; - public const string ElapsedTillPipelineExitMiddleware = "eltexm"; - public const string ElapsedResponseProcessed = "eltrspproc"; - public const string ElapsedTillEntryMiddleware = "eltenm"; -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointExtensions.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointExtensions.cs deleted file mode 100644 index e2159c5437d..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointExtensions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.Diagnostics.Latency; - -public static class RequestCheckpointExtensions -{ - public static IServiceCollection AddRequestCheckpoint(this IServiceCollection services); - public static IApplicationBuilder UseRequestCheckpoint(this IApplicationBuilder builder); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryExtensions.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryExtensions.cs deleted file mode 100644 index 760ef8a9838..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryExtensions.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.Diagnostics.Latency; - -public static class RequestLatencyTelemetryExtensions -{ - public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services); - public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services, Action configure); - public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services, IConfigurationSection section); - public static IApplicationBuilder UseRequestLatencyTelemetry(this IApplicationBuilder builder); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryOptions.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryOptions.cs deleted file mode 100644 index 5b40503f647..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryOptions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System; -using System.Runtime.CompilerServices; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.AspNetCore.Diagnostics.Latency; - -public class RequestLatencyTelemetryOptions -{ - [TimeSpan(1000)] - public TimeSpan LatencyDataExportTimeout { get; set; } - public RequestLatencyTelemetryOptions(); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingServiceExtensions.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingServiceExtensions.cs deleted file mode 100644 index eae03a0e457..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingServiceExtensions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -public static class HttpLoggingServiceExtensions -{ - public static IServiceCollection AddHttpLogging(this IServiceCollection services); - public static IServiceCollection AddHttpLogging(this IServiceCollection services, Action configure); - public static IServiceCollection AddHttpLogging(this IServiceCollection services, IConfigurationSection section); - public static IServiceCollection AddHttpLogEnricher(this IServiceCollection services) where T : class, IHttpLogEnricher; - public static IApplicationBuilder UseHttpLoggingMiddleware(this IApplicationBuilder builder); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingTagNames.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingTagNames.cs deleted file mode 100644 index ee61b8d3b76..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingTagNames.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -public static class HttpLoggingTagNames -{ - public const string Duration = "duration"; - public const string Host = "httpHost"; - public const string Method = "httpMethod"; - public const string Path = "httpPath"; - public const string RequestHeaderPrefix = "httpRequestHeader_"; - public const string ResponseHeaderPrefix = "httpResponseHeader_"; - public const string RequestBody = "httpRequestBody"; - public const string ResponseBody = "httpResponseBody"; - public const string StatusCode = "httpStatusCode"; - public static IReadOnlyList DimensionNames { get; } -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/IHttpLogEnricher.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/IHttpLogEnricher.cs deleted file mode 100644 index 203f6da2068..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/IHttpLogEnricher.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Diagnostics.Enrichment; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -public interface IHttpLogEnricher -{ - void Enrich(IEnrichmentTagCollector collector, HttpRequest request, HttpResponse response); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/IncomingPathLoggingMode.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/IncomingPathLoggingMode.cs deleted file mode 100644 index 5a1fd1c5c22..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/IncomingPathLoggingMode.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -public enum IncomingPathLoggingMode -{ - Formatted = 0, - Structured = 1 -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/LoggingOptions.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/LoggingOptions.cs deleted file mode 100644 index 7b85d63811f..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/LoggingOptions.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Http.Diagnostics; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -public class LoggingOptions -{ - public bool LogRequestStart { get; set; } - public bool LogBody { get; set; } - public IncomingPathLoggingMode RequestPathLoggingMode { get; set; } - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public HttpRouteParameterRedactionMode RequestPathParameterRedactionMode { get; set; } - [TimeSpan(1, 60000)] - public TimeSpan RequestBodyReadTimeout { get; set; } - [Range(1, 1572864)] - public int BodySizeLimit { get; set; } - [Required] - public IDictionary RouteParameterDataClasses { get; set; } - [Required] - public IDictionary RequestHeadersDataClasses { get; set; } - [Required] - public ISet RequestBodyContentTypes { get; set; } - [Required] - public IDictionary ResponseHeadersDataClasses { get; set; } - [Required] - public ISet ResponseBodyContentTypes { get; set; } - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - [Required] - public ISet ExcludePathStartsWith { get; set; } - public LoggingOptions(); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/RequestHeadersEnricherExtensions.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/RequestHeadersEnricherExtensions.cs deleted file mode 100644 index c2f1f85840f..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics.Logging/RequestHeadersEnricherExtensions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -public static class RequestHeadersEnricherExtensions -{ - public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services); - public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services, Action configure); - public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Diagnostics/RequestHeadersLogEnricherOptions.cs b/API/NoDocs/Microsoft.AspNetCore.Diagnostics/RequestHeadersLogEnricherOptions.cs deleted file mode 100644 index 3dbe8b7b532..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Diagnostics/RequestHeadersLogEnricherOptions.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.AspNetCore.Diagnostics; - -public class RequestHeadersLogEnricherOptions -{ - [Required] - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public IDictionary HeadersDataClasses { get; set; } - public RequestHeadersLogEnricherOptions(); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/CommonHeaders.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/CommonHeaders.cs deleted file mode 100644 index 60f4fce6def..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/CommonHeaders.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.Collections.Generic; -using System.Net; -using Microsoft.Net.Http.Headers; - -namespace Microsoft.AspNetCore.HeaderParsing; - -public static class CommonHeaders -{ - public static HeaderSetup Host { get; } - public static HeaderSetup> Accept { get; } - public static HeaderSetup> AcceptEncoding { get; } - public static HeaderSetup> AcceptLanguage { get; } - public static HeaderSetup CacheControl { get; } - public static HeaderSetup ContentDisposition { get; } - public static HeaderSetup ContentType { get; } - public static HeaderSetup> Cookie { get; } - public static HeaderSetup Date { get; } - public static HeaderSetup> IfMatch { get; } - public static HeaderSetup> IfModifiedSince { get; } - public static HeaderSetup> IfNoneMatch { get; } - public static HeaderSetup IfRange { get; } - public static HeaderSetup IfUnmodifiedSince { get; } - public static HeaderSetup Range { get; } - public static HeaderSetup Referer { get; } - public static HeaderSetup> XForwardedFor { get; } -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderKey.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderKey.cs deleted file mode 100644 index 9ef637c2463..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderKey.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Caching.Memory; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.AspNetCore.HeaderParsing; - -public sealed class HeaderKey where T : notnull -{ - public string Name { get; } - public override string ToString(); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParser.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParser.cs deleted file mode 100644 index f63fbb32ebe..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParser.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.AspNetCore.HeaderParsing; - -public abstract class HeaderParser where T : notnull -{ - public abstract bool TryParse(StringValues values, [NotNullWhen(true)] out T? result, [NotNullWhen(false)] out string? error); - protected HeaderParser(); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingExtensions.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingExtensions.cs deleted file mode 100644 index e54d8088c78..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingExtensions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.HeaderParsing; - -public static class HeaderParsingExtensions -{ - public static IServiceCollection AddHeaderParsing(this IServiceCollection services); - public static IServiceCollection AddHeaderParsing(this IServiceCollection services, Action configuration); - public static IServiceCollection AddHeaderParsing(this IServiceCollection services, IConfigurationSection section); - public static HeaderParsingFeature GetHeaderParsing(this HttpRequest request); - public static bool TryGetHeaderValue(this HttpRequest request, HeaderKey header, [NotNullWhen(true)] out T? value) where T : notnull; - public static bool TryGetHeaderValue(this HttpRequest request, HeaderKey header, [NotNullWhen(true)] out T? value, out ParsingResult result) where T : notnull; -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingFeature.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingFeature.cs deleted file mode 100644 index b772e22a6ed..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingFeature.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.CodeDom.Compiler; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Diagnostics.Metrics; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.ObjectPool; - -namespace Microsoft.AspNetCore.HeaderParsing; - -public sealed class HeaderParsingFeature -{ - public bool TryGetHeaderValue(HeaderKey header, [NotNullWhen(true)] out T? value) where T : notnull; - public bool TryGetHeaderValue(HeaderKey header, [NotNullWhen(true)] out T? value, out ParsingResult result) where T : notnull; -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingOptions.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingOptions.cs deleted file mode 100644 index 1b04272311d..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingOptions.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.AspNetCore.HeaderParsing; - -public class HeaderParsingOptions -{ - public IDictionary DefaultValues { get; set; } - [Range(0, int.MaxValue)] - public int DefaultMaxCachedValuesPerHeader { get; set; } - public IDictionary MaxCachedValuesPerHeader { get; set; } - public HeaderParsingOptions(); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderSetup.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderSetup.cs deleted file mode 100644 index 3e22d446f29..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HeaderSetup.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.AspNetCore.HeaderParsing; - -public class HeaderSetup where THeader : notnull -{ - public string HeaderName { get; } - public Type? ParserType { get; } - public HeaderParser? ParserInstance { get; } - public bool Cacheable { get; } - public HeaderSetup(string headerName, Type parserType, bool cacheable = false); - public HeaderSetup(string headerName, HeaderParser instance, bool cacheable = false); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HostHeaderValue.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HostHeaderValue.cs deleted file mode 100644 index d4a465175ab..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/HostHeaderValue.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.AspNetCore.HeaderParsing; - -public readonly struct HostHeaderValue : IEquatable -{ - public string Host { get; } - public int? Port { get; } - public HostHeaderValue(string host, int? port); - public static bool operator ==(HostHeaderValue left, HostHeaderValue right); - public static bool operator !=(HostHeaderValue left, HostHeaderValue right); - public static bool TryParse(string value, [NotNullWhen(true)] out HostHeaderValue result); - public bool Equals(HostHeaderValue other); - public override bool Equals(object? obj); - public override int GetHashCode(); - public override string ToString(); -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/IHeaderRegistry.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/IHeaderRegistry.cs deleted file mode 100644 index a19e579affb..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/IHeaderRegistry.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -namespace Microsoft.AspNetCore.HeaderParsing; - -public interface IHeaderRegistry -{ - HeaderKey Register(HeaderSetup setup) where T : notnull; -} diff --git a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/ParsingResult.cs b/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/ParsingResult.cs deleted file mode 100644 index 04539f63e57..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.HeaderParsing/ParsingResult.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -namespace Microsoft.AspNetCore.HeaderParsing; - -public enum ParsingResult -{ - Success = 0, - Error = 1, - NotFound = 2 -} diff --git a/API/NoDocs/Microsoft.AspNetCore.Testing/ServiceFakesExtensions.cs b/API/NoDocs/Microsoft.AspNetCore.Testing/ServiceFakesExtensions.cs deleted file mode 100644 index e71e4d5bbf2..00000000000 --- a/API/NoDocs/Microsoft.AspNetCore.Testing/ServiceFakesExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Testing' - -using System; -using System.Collections.Generic; -using System.Net.Http; -using System.Security.Cryptography.X509Certificates; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Hosting.Server; -using Microsoft.Extensions.Hosting; - -namespace Microsoft.AspNetCore.Testing; - -public static class ServiceFakesExtensions -{ - public static IWebHostBuilder UseTestStartup(this IWebHostBuilder builder); - public static IWebHostBuilder ListenHttpOnAnyPort(this IWebHostBuilder builder); - public static IWebHostBuilder ListenHttpsOnAnyPort(this IWebHostBuilder builder, X509Certificate2? sslCertificate = null); - public static HttpClient CreateClient(this IHost host, HttpMessageHandler? handler = null, Func? addressFilter = null); - public static IEnumerable GetListenUris(this IHost host); -} diff --git a/API/NoDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadata.cs b/API/NoDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadata.cs deleted file mode 100644 index 2887728d355..00000000000 --- a/API/NoDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadata.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.AmbientMetadata.Application' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.AmbientMetadata; - -public class ApplicationMetadata -{ - public string? DeploymentRing { get; set; } - public string? BuildVersion { get; set; } - [Required] - public string ApplicationName { get; set; } - [Required] - public string EnvironmentName { get; set; } - public ApplicationMetadata(); -} diff --git a/API/NoDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadataExtensions.cs b/API/NoDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadataExtensions.cs deleted file mode 100644 index 179917607c1..00000000000 --- a/API/NoDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadataExtensions.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.AmbientMetadata.Application' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; - -namespace Microsoft.Extensions.AmbientMetadata; - -public static class ApplicationMetadataExtensions -{ - public static IHostBuilder UseApplicationMetadata(this IHostBuilder builder, string sectionName = "ambientmetadata:application"); - public static IConfigurationBuilder AddApplicationMetadata(this IConfigurationBuilder builder, IHostEnvironment hostEnvironment, string sectionName = "ambientmetadata:application"); - public static IServiceCollection AddApplicationMetadata(this IServiceCollection services, IConfigurationSection section); - public static IServiceCollection AddApplicationMetadata(this IServiceCollection services, Action configure); -} diff --git a/API/NoDocs/Microsoft.Extensions.AsyncState/AsyncStateExtensions.cs b/API/NoDocs/Microsoft.Extensions.AsyncState/AsyncStateExtensions.cs deleted file mode 100644 index 643a9b6d784..00000000000 --- a/API/NoDocs/Microsoft.Extensions.AsyncState/AsyncStateExtensions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.AsyncState; - -public static class AsyncStateExtensions -{ - public static IServiceCollection AddAsyncStateCore(this IServiceCollection services); -} diff --git a/API/NoDocs/Microsoft.Extensions.AsyncState/AsyncStateToken.cs b/API/NoDocs/Microsoft.Extensions.AsyncState/AsyncStateToken.cs deleted file mode 100644 index 79cf430cf17..00000000000 --- a/API/NoDocs/Microsoft.Extensions.AsyncState/AsyncStateToken.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.AsyncState; - -public readonly struct AsyncStateToken : IEquatable -{ - public override bool Equals(object? obj); - public bool Equals(AsyncStateToken other); - public override int GetHashCode(); - public static bool operator ==(AsyncStateToken left, AsyncStateToken right); - public static bool operator !=(AsyncStateToken left, AsyncStateToken right); -} diff --git a/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncContext.cs b/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncContext.cs deleted file mode 100644 index 89f16a67982..00000000000 --- a/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncContext.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.AsyncState; - -public interface IAsyncContext where T : notnull -{ - T? Get(); - void Set(T? context); - bool TryGet([MaybeNullWhen(false)] out T? context); -} diff --git a/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncLocalContext.cs b/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncLocalContext.cs deleted file mode 100644 index 17ce1827d5b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncLocalContext.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.AsyncState; - -[Experimental("EXTEXP0006", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -[EditorBrowsable(EditorBrowsableState.Never)] -public interface IAsyncLocalContext : IAsyncContext where T : class -{ -} diff --git a/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncState.cs b/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncState.cs deleted file mode 100644 index ea83c20fc75..00000000000 --- a/API/NoDocs/Microsoft.Extensions.AsyncState/IAsyncState.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.AsyncState; - -public interface IAsyncState -{ - void Initialize(); - void Reset(); - bool TryGet(AsyncStateToken token, [MaybeNullWhen(false)] out object? value); - object? Get(AsyncStateToken token); - void Set(AsyncStateToken token, object? value); - AsyncStateToken RegisterAsyncContext(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Classification/DataClassification.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Classification/DataClassification.cs deleted file mode 100644 index 4886d77e3fb..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Classification/DataClassification.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Classification; - -public readonly struct DataClassification : IEquatable -{ - public const ulong NoneTaxonomyValue = 0uL; - public const ulong UnknownTaxonomyValue = 9223372036854775808uL; - public static DataClassification None { get; } - public static DataClassification Unknown { get; } - public string TaxonomyName { get; } - public ulong Value { get; } - public DataClassification(string taxonomyName, ulong value); - public override bool Equals(object? obj); - public bool Equals(DataClassification other); - public override int GetHashCode(); - public static bool operator ==(DataClassification left, DataClassification right); - public static bool operator !=(DataClassification left, DataClassification right); - public static DataClassification Or(DataClassification left, DataClassification right); - public static DataClassification operator |(DataClassification left, DataClassification right); - public override string ToString(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Classification/DataClassificationAttribute.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Classification/DataClassificationAttribute.cs deleted file mode 100644 index 750b192495e..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Classification/DataClassificationAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Classification; - -[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = true)] -public class DataClassificationAttribute : Attribute -{ - public string Notes { get; set; } - public DataClassification Classification { get; } - protected DataClassificationAttribute(DataClassification classification); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Classification/NoDataClassificationAttribute.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Classification/NoDataClassificationAttribute.cs deleted file mode 100644 index 91c3ecfa502..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Classification/NoDataClassificationAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -namespace Microsoft.Extensions.Compliance.Classification; - -public sealed class NoDataClassificationAttribute : DataClassificationAttribute -{ - public NoDataClassificationAttribute(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Classification/UnknownDataClassificationAttribute.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Classification/UnknownDataClassificationAttribute.cs deleted file mode 100644 index e6c228a17bd..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Classification/UnknownDataClassificationAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -namespace Microsoft.Extensions.Compliance.Classification; - -public sealed class UnknownDataClassificationAttribute : DataClassificationAttribute -{ - public UnknownDataClassificationAttribute(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/ErasingRedactor.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/ErasingRedactor.cs deleted file mode 100644 index 1790ed4c9fe..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/ErasingRedactor.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Redaction' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public sealed class ErasingRedactor : Redactor -{ - public static ErasingRedactor Instance { get; } - public override int Redact(ReadOnlySpan source, Span destination); - public override int GetRedactedLength(ReadOnlySpan input); - public ErasingRedactor(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/IRedactionBuilder.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/IRedactionBuilder.cs deleted file mode 100644 index 2f2ba10b483..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/IRedactionBuilder.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public interface IRedactionBuilder -{ - IServiceCollection Services { get; } - IRedactionBuilder SetRedactor(params DataClassification[] classifications) where T : Redactor; - IRedactionBuilder SetFallbackRedactor() where T : Redactor; -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/IRedactorProvider.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/IRedactorProvider.cs deleted file mode 100644 index e22c0870bb6..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/IRedactorProvider.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public interface IRedactorProvider -{ - Redactor GetRedactor(DataClassification classification); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactor.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactor.cs deleted file mode 100644 index b7915b37525..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactor.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public sealed class NullRedactor : Redactor -{ - public static NullRedactor Instance { get; } - public override int GetRedactedLength(ReadOnlySpan input); - public override int Redact(ReadOnlySpan source, Span destination); - public override string Redact(string? source); - public NullRedactor(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactorProvider.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactorProvider.cs deleted file mode 100644 index 398e0b111c0..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactorProvider.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public sealed class NullRedactorProvider : IRedactorProvider -{ - public static NullRedactorProvider Instance { get; } - public Redactor GetRedactor(DataClassification classification); - public NullRedactorProvider(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/RedactionAbstractionsExtensions.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/RedactionAbstractionsExtensions.cs deleted file mode 100644 index 43c7c193873..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/RedactionAbstractionsExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; -using System.Text; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public static class RedactionAbstractionsExtensions -{ - public static StringBuilder AppendRedacted(this StringBuilder stringBuilder, Redactor redactor, string? value); - public static StringBuilder AppendRedacted(this StringBuilder stringBuilder, Redactor redactor, ReadOnlySpan value); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/RedactionExtensions.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/RedactionExtensions.cs deleted file mode 100644 index 02497e61d7f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/RedactionExtensions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Redaction' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public static class RedactionExtensions -{ - public static IHostBuilder ConfigureRedaction(this IHostBuilder builder); - public static IHostBuilder ConfigureRedaction(this IHostBuilder builder, Action configure); - public static IHostBuilder ConfigureRedaction(this IHostBuilder builder, Action configure); - public static IServiceCollection AddRedaction(this IServiceCollection services); - public static IServiceCollection AddRedaction(this IServiceCollection services, Action configure); - public static IRedactionBuilder SetXxHash3Redactor(this IRedactionBuilder builder, Action configure, params DataClassification[] classifications); - public static IRedactionBuilder SetXxHash3Redactor(this IRedactionBuilder builder, IConfigurationSection section, params DataClassification[] classifications); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/Redactor.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/Redactor.cs deleted file mode 100644 index d3f1edcf4d4..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/Redactor.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public abstract class Redactor -{ - public string Redact(ReadOnlySpan source); - public abstract int Redact(ReadOnlySpan source, Span destination); - public int Redact(string? source, Span destination); - public virtual string Redact(string? source); - public string Redact(T value, string? format = null, IFormatProvider? provider = null); - public int Redact(T value, Span destination, string? format = null, IFormatProvider? provider = null); - public bool TryRedact(T value, Span destination, out int charsWritten, ReadOnlySpan format, IFormatProvider? provider = null); - public abstract int GetRedactedLength(ReadOnlySpan input); - public int GetRedactedLength(string? input); - protected Redactor(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/XxHash3RedactorOptions.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/XxHash3RedactorOptions.cs deleted file mode 100644 index eb343512bff..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Redaction/XxHash3RedactorOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Redaction' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Redaction; - -public class XxHash3RedactorOptions -{ - public ulong HashSeed { get; set; } - public XxHash3RedactorOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeClassifications.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeClassifications.cs deleted file mode 100644 index 56e211f9d24..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeClassifications.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -public static class FakeClassifications -{ - public static string TaxonomyName { get; } - public static DataClassification PrivateData { get; } - public static DataClassification PublicData { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionCollector.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionCollector.cs deleted file mode 100644 index 82bbaf1f12d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionCollector.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System.Collections.Generic; - -namespace Microsoft.Extensions.Compliance.Testing; - -public class FakeRedactionCollector -{ - public RedactorRequested LastRedactorRequested { get; } - public IReadOnlyList AllRedactorRequests { get; } - public RedactedData LastRedactedData { get; } - public IReadOnlyList AllRedactedData { get; } - public FakeRedactionCollector(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionExtensions.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionExtensions.cs deleted file mode 100644 index 7c763e68ca9..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Compliance.Redaction; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Compliance.Testing; - -public static class FakeRedactionExtensions -{ - public static IRedactionBuilder SetFakeRedactor(this IRedactionBuilder builder, params DataClassification[] classifications); - public static IRedactionBuilder SetFakeRedactor(this IRedactionBuilder builder, Action configure, params DataClassification[] classifications); - public static IRedactionBuilder SetFakeRedactor(this IRedactionBuilder builder, IConfigurationSection section, params DataClassification[] classifications); - public static IServiceCollection AddFakeRedaction(this IServiceCollection services); - public static IServiceCollection AddFakeRedaction(this IServiceCollection services, Action configure); - public static FakeRedactionCollector GetFakeRedactionCollector(this IServiceProvider serviceProvider); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactor.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactor.cs deleted file mode 100644 index 8ba3bafd788..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactor.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; -using System.Runtime.CompilerServices; -using System.Text; -using Microsoft.Extensions.Compliance.Redaction; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Compliance.Testing; - -public class FakeRedactor : Redactor -{ - public FakeRedactionCollector EventCollector { get; } - public FakeRedactor(IOptions? options = null, FakeRedactionCollector? collector = null); - public static FakeRedactor Create(FakeRedactorOptions? options = null, FakeRedactionCollector? collector = null); - public override int Redact(ReadOnlySpan source, Span destination); - public override int GetRedactedLength(ReadOnlySpan input); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorOptions.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorOptions.cs deleted file mode 100644 index 55a5024691c..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorOptions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Testing; - -public class FakeRedactorOptions -{ - [Required] - [StringSyntax("CompositeFormat")] - public string RedactionFormat { get; set; } - public FakeRedactorOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorProvider.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorProvider.cs deleted file mode 100644 index 26e0b0b1d73..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorProvider.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Compliance.Redaction; - -namespace Microsoft.Extensions.Compliance.Testing; - -public class FakeRedactorProvider : IRedactorProvider -{ - public FakeRedactionCollector Collector { get; } - public FakeRedactorProvider(FakeRedactorOptions? options = null, FakeRedactionCollector? eventCollector = null); - public Redactor GetRedactor(DataClassification classification); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomy.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomy.cs deleted file mode 100644 index 56dd3dcf6e7..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomy.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; - -namespace Microsoft.Extensions.Compliance.Testing; - -[Flags] -public enum FakeTaxonomy : ulong -{ - None = 0uL, - PublicData = 1uL, - PrivateData = 2uL, - Unknown = 9223372036854775808uL -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomyExtensions.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomyExtensions.cs deleted file mode 100644 index 12de55cdcf0..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomyExtensions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -public static class FakeTaxonomyExtensions -{ - public static FakeTaxonomy AsFakeTaxonomy(this DataClassification classification); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/PrivateDataAttribute.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/PrivateDataAttribute.cs deleted file mode 100644 index a3eb6ce399a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/PrivateDataAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -public sealed class PrivateDataAttribute : DataClassificationAttribute -{ - public PrivateDataAttribute(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/PublicDataAttribute.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/PublicDataAttribute.cs deleted file mode 100644 index c2b02eeb82d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/PublicDataAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -public sealed class PublicDataAttribute : DataClassificationAttribute -{ - public PublicDataAttribute(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/RedactedData.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/RedactedData.cs deleted file mode 100644 index 5482bfd9a6d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/RedactedData.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Testing; - -public readonly struct RedactedData : IEquatable -{ - public string Original { get; } - public string Redacted { get; } - public int SequenceNumber { get; } - public RedactedData(string original, string redacted, int sequenceNumber); - public override bool Equals(object? obj); - public bool Equals(RedactedData other); - public override int GetHashCode(); - public static bool operator ==(RedactedData left, RedactedData right); - public static bool operator !=(RedactedData left, RedactedData right); -} diff --git a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/RedactorRequested.cs b/API/NoDocs/Microsoft.Extensions.Compliance.Testing/RedactorRequested.cs deleted file mode 100644 index d67a83bb167..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Compliance.Testing/RedactorRequested.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -public readonly struct RedactorRequested : IEquatable -{ - public DataClassification DataClassification { get; } - public int SequenceNumber { get; } - public RedactorRequested(DataClassification classification, int sequenceNumber); - public override bool Equals(object? obj); - public bool Equals(RedactorRequested other); - public override int GetHashCode(); - public static bool operator ==(RedactorRequested left, RedactorRequested right); - public static bool operator !=(RedactorRequested left, RedactorRequested right); -} diff --git a/API/NoDocs/Microsoft.Extensions.DependencyInjection/AutoActivationExtensions.cs b/API/NoDocs/Microsoft.Extensions.DependencyInjection/AutoActivationExtensions.cs deleted file mode 100644 index b206c68d9c9..00000000000 --- a/API/NoDocs/Microsoft.Extensions.DependencyInjection/AutoActivationExtensions.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Assembly 'Microsoft.Extensions.DependencyInjection.AutoActivation' - -using System; -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.DependencyInjection; - -public static class AutoActivationExtensions -{ - public static IServiceCollection ActivateSingleton(this IServiceCollection services) where TService : class; - public static IServiceCollection ActivateSingleton(this IServiceCollection services, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type serviceType); - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Func implementationFactory) where TService : class where TImplementation : class, TService; - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services) where TService : class where TImplementation : class, TService; - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Func implementationFactory) where TService : class; - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services) where TService : class; - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Type serviceType); - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Type serviceType, Func implementationFactory); - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Type serviceType, Type implementationType); - public static void TryAddActivatedSingleton(this IServiceCollection services, Type serviceType); - public static void TryAddActivatedSingleton(this IServiceCollection services, Type serviceType, Type implementationType); - public static void TryAddActivatedSingleton(this IServiceCollection services, Type serviceType, Func implementationFactory); - public static void TryAddActivatedSingleton(this IServiceCollection services) where TService : class; - public static void TryAddActivatedSingleton(this IServiceCollection services) where TService : class where TImplementation : class, TService; - public static void TryAddActivatedSingleton(this IServiceCollection services, Func implementationFactory) where TService : class; - public static IServiceCollection ActivateKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class; - public static IServiceCollection ActivateKeyedSingleton(this IServiceCollection services, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type serviceType, object? serviceKey); - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey, Func implementationFactory) where TService : class where TImplementation : class, TService; - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService; - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey, Func implementationFactory) where TService : class; - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class; - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey); - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey, Func implementationFactory); - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey, Type implementationType); - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey); - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey, Type implementationType); - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey, Func implementationFactory); - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class; - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService; - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey, Func implementationFactory) where TService : class; -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/EnricherExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/EnricherExtensions.cs deleted file mode 100644 index fa339223017..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/EnricherExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public static class EnricherExtensions -{ - public static IServiceCollection AddLogEnricher(this IServiceCollection services) where T : class, ILogEnricher; - public static IServiceCollection AddLogEnricher(this IServiceCollection services, ILogEnricher enricher); - public static IServiceCollection AddStaticLogEnricher(this IServiceCollection services) where T : class, IStaticLogEnricher; - public static IServiceCollection AddStaticLogEnricher(this IServiceCollection services, IStaticLogEnricher enricher); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/IEnrichmentTagCollector.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/IEnrichmentTagCollector.cs deleted file mode 100644 index b7dab5a686d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/IEnrichmentTagCollector.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public interface IEnrichmentTagCollector -{ - void Add(string tagName, object tagValue); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ILogEnricher.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ILogEnricher.cs deleted file mode 100644 index 441ac2b615b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ILogEnricher.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public interface ILogEnricher -{ - void Enrich(IEnrichmentTagCollector collector); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/IStaticLogEnricher.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/IStaticLogEnricher.cs deleted file mode 100644 index ae375d703c7..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/IStaticLogEnricher.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public interface IStaticLogEnricher -{ - void Enrich(IEnrichmentTagCollector collector); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherExtensions.cs deleted file mode 100644 index b4135ca2732..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherExtensions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public static class ProcessEnricherExtensions -{ - public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services); - public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, Action configure); - public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherTagNames.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherTagNames.cs deleted file mode 100644 index 6e8179ab2d5..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherTagNames.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public static class ProcessEnricherTagNames -{ - public const string ProcessId = "pid"; - public const string ThreadId = "tid"; - public static IReadOnlyList DimensionNames { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessLogEnricherOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessLogEnricherOptions.cs deleted file mode 100644 index 3854ca9c20f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessLogEnricherOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public class ProcessLogEnricherOptions -{ - public bool ProcessId { get; set; } - public bool ThreadId { get; set; } - public ProcessLogEnricherOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherExtensions.cs deleted file mode 100644 index 0fc390a36b1..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherExtensions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public static class ServiceEnricherExtensions -{ - public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services); - public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, Action configure); - public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherTags.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherTags.cs deleted file mode 100644 index 664c5efc041..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherTags.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public static class ServiceEnricherTags -{ - public const string ApplicationName = "env_app_name"; - public const string EnvironmentName = "env_cloud_env"; - public const string DeploymentRing = "env_cloud_deploymentRing"; - public const string BuildVersion = "env_cloud_roleVer"; - public static IReadOnlyList DimensionNames { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceLogEnricherOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceLogEnricherOptions.cs deleted file mode 100644 index fb446f00483..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceLogEnricherOptions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -public class ServiceLogEnricherOptions -{ - public bool EnvironmentName { get; set; } - public bool ApplicationName { get; set; } - public bool DeploymentRing { get; set; } - public bool BuildVersion { get; set; } - public ServiceLogEnricherOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummarizationExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummarizationExtensions.cs deleted file mode 100644 index 9882cd37019..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummarizationExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -public static class ExceptionSummarizationExtensions -{ - public static IServiceCollection AddExceptionSummarizer(this IServiceCollection services); - public static IServiceCollection AddExceptionSummarizer(this IServiceCollection services, Action configure); - public static IExceptionSummarizationBuilder AddHttpProvider(this IExceptionSummarizationBuilder builder); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummary.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummary.cs deleted file mode 100644 index f6b17baffc4..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummary.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -public readonly struct ExceptionSummary : IEquatable -{ - public string ExceptionType { get; } - public string Description { get; } - public string AdditionalDetails { get; } - public ExceptionSummary(string exceptionType, string description, string additionalDetails); - public override int GetHashCode(); - public override string ToString(); - public override bool Equals(object? obj); - public bool Equals(ExceptionSummary other); - public static bool operator ==(ExceptionSummary left, ExceptionSummary right); - public static bool operator !=(ExceptionSummary left, ExceptionSummary right); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizationBuilder.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizationBuilder.cs deleted file mode 100644 index 120bde0a963..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizationBuilder.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -public interface IExceptionSummarizationBuilder -{ - IServiceCollection Services { get; } - IExceptionSummarizationBuilder AddProvider<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>() where T : class, IExceptionSummaryProvider; -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizer.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizer.cs deleted file mode 100644 index c0b6437a86d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizer.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -public interface IExceptionSummarizer -{ - ExceptionSummary Summarize(Exception exception); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummaryProvider.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummaryProvider.cs deleted file mode 100644 index f6461ebfc22..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummaryProvider.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System; -using System.Collections.Generic; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -public interface IExceptionSummaryProvider -{ - IEnumerable SupportedExceptionTypes { get; } - IReadOnlyList Descriptions { get; } - int Describe(Exception exception, out string? additionalDetails); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/CommonHealthChecksExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/CommonHealthChecksExtensions.cs deleted file mode 100644 index 1c1b6ccd071..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/CommonHealthChecksExtensions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.Common' - -using System; -using System.Collections.Generic; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -public static class CommonHealthChecksExtensions -{ - public static IHealthChecksBuilder AddApplicationLifecycleHealthCheck(this IHealthChecksBuilder builder, params string[] tags); - public static IHealthChecksBuilder AddApplicationLifecycleHealthCheck(this IHealthChecksBuilder builder, IEnumerable tags); - public static IHealthChecksBuilder AddManualHealthCheck(this IHealthChecksBuilder builder, params string[] tags); - public static IHealthChecksBuilder AddManualHealthCheck(this IHealthChecksBuilder builder, IEnumerable tags); - public static void ReportHealthy(this IManualHealthCheck manualHealthCheck); - public static void ReportUnhealthy(this IManualHealthCheck manualHealthCheck, string reason); - public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services); - public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services, IConfigurationSection section); - public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services, Action configure); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.T.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.T.cs deleted file mode 100644 index 7aec3550fc3..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.T.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.Common' - -using System; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -public interface IManualHealthCheck : IManualHealthCheck, IDisposable -{ -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.cs deleted file mode 100644 index 193ae3de7ce..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.Common' - -using System; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -public interface IManualHealthCheck : IDisposable -{ - HealthCheckResult Result { get; set; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUsageThresholds.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUsageThresholds.cs deleted file mode 100644 index ccbcfeed2b2..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUsageThresholds.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -public class ResourceUsageThresholds -{ - [Range(0.0, 100.0)] - public double? DegradedUtilizationPercentage { get; set; } - [Range(0.0, 100.0)] - public double? UnhealthyUtilizationPercentage { get; set; } - public ResourceUsageThresholds(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckExtensions.cs deleted file mode 100644 index 19c18540fd9..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckExtensions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization' - -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -public static class ResourceUtilizationHealthCheckExtensions -{ - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, params string[] tags); - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, IEnumerable tags); - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, IConfigurationSection section); - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, IConfigurationSection section, params string[] tags); - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, IConfigurationSection section, IEnumerable tags); - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, Action configure); - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, Action configure, params string[] tags); - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, Action configure, IEnumerable tags); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckOptions.cs deleted file mode 100644 index d091a558ef4..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization' - -using System; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -public class ResourceUtilizationHealthCheckOptions -{ - [ValidateObjectMembers] - public ResourceUsageThresholds CpuThresholds { get; set; } - [ValidateObjectMembers] - public ResourceUsageThresholds MemoryThresholds { get; set; } - [Microsoft.Shared.Data.Validation.TimeSpan(100, int.MaxValue)] - public TimeSpan SamplingWindow { get; set; } - public ResourceUtilizationHealthCheckOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/TelemetryHealthCheckPublisherOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/TelemetryHealthCheckPublisherOptions.cs deleted file mode 100644 index f78d51c5272..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.HealthChecks/TelemetryHealthCheckPublisherOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.Common' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -public class TelemetryHealthCheckPublisherOptions -{ - public bool LogOnlyUnhealthy { get; set; } - public TelemetryHealthCheckPublisherOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Checkpoint.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Checkpoint.cs deleted file mode 100644 index bb3dd655f68..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Checkpoint.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public readonly struct Checkpoint : IEquatable -{ - public string Name { get; } - public long Elapsed { get; } - public long Frequency { get; } - public Checkpoint(string name, long elapsed, long frequency); - public override bool Equals(object? obj); - public bool Equals(Checkpoint other); - public override int GetHashCode(); - public static bool operator ==(Checkpoint left, Checkpoint right); - public static bool operator !=(Checkpoint left, Checkpoint right); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/CheckpointToken.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/CheckpointToken.cs deleted file mode 100644 index 1c2e97d946a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/CheckpointToken.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public readonly struct CheckpointToken -{ - public string Name { get; } - public int Position { get; } - public CheckpointToken(string name, int position); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContext.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContext.cs deleted file mode 100644 index f117af93343..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContext.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public interface ILatencyContext : IDisposable -{ - LatencyData LatencyData { get; } - void SetTag(TagToken token, string value); - void AddCheckpoint(CheckpointToken token); - void AddMeasure(MeasureToken token, long value); - void RecordMeasure(MeasureToken token, long value); - void Freeze(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextProvider.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextProvider.cs deleted file mode 100644 index c7a7720ba70..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextProvider.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public interface ILatencyContextProvider -{ - ILatencyContext CreateContext(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextTokenIssuer.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextTokenIssuer.cs deleted file mode 100644 index 07aead0bbf0..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextTokenIssuer.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public interface ILatencyContextTokenIssuer -{ - TagToken GetTagToken(string name); - CheckpointToken GetCheckpointToken(string name); - MeasureToken GetMeasureToken(string name); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyDataExporter.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyDataExporter.cs deleted file mode 100644 index 61f17a051ce..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyDataExporter.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public interface ILatencyDataExporter -{ - Task ExportAsync(LatencyData data, CancellationToken cancellationToken); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleExtensions.cs deleted file mode 100644 index f46ab82c24c..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleExtensions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public static class LatencyConsoleExtensions -{ - public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services); - public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, Action configure); - public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleOptions.cs deleted file mode 100644 index e08302a5bfe..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleOptions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public class LatencyConsoleOptions -{ - public bool OutputCheckpoints { get; set; } - public bool OutputTags { get; set; } - public bool OutputMeasures { get; set; } - public LatencyConsoleOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextExtensions.cs deleted file mode 100644 index e790b58195d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextExtensions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public static class LatencyContextExtensions -{ - public static IServiceCollection AddLatencyContext(this IServiceCollection services); - public static IServiceCollection AddLatencyContext(this IServiceCollection services, Action configure); - public static IServiceCollection AddLatencyContext(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextOptions.cs deleted file mode 100644 index dc62ec1e413..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public class LatencyContextOptions -{ - public bool ThrowOnUnregisteredNames { get; set; } - public LatencyContextOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextRegistrationOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextRegistrationOptions.cs deleted file mode 100644 index 61e1d374009..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextRegistrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public class LatencyContextRegistrationOptions -{ - [Required] - public IReadOnlyList CheckpointNames { get; set; } - [Required] - public IReadOnlyList MeasureNames { get; set; } - [Required] - public IReadOnlyList TagNames { get; set; } - public LatencyContextRegistrationOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyData.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyData.cs deleted file mode 100644 index d3fb4b4d5ce..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyData.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public readonly struct LatencyData -{ - public ReadOnlySpan Checkpoints { get; } - public ReadOnlySpan Tags { get; } - public ReadOnlySpan Measures { get; } - public long DurationTimestamp { get; } - public long DurationTimestampFrequency { get; } - public LatencyData(ArraySegment tags, ArraySegment checkpoints, ArraySegment measures, long durationTimestamp, long durationTimestampFrequency); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyRegistryExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyRegistryExtensions.cs deleted file mode 100644 index 9c44ec853cb..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyRegistryExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public static class LatencyRegistryExtensions -{ - public static IServiceCollection RegisterCheckpointNames(this IServiceCollection services, params string[] names); - public static IServiceCollection RegisterMeasureNames(this IServiceCollection services, params string[] names); - public static IServiceCollection RegisterTagNames(this IServiceCollection services, params string[] names); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Measure.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Measure.cs deleted file mode 100644 index aa49f17eee0..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Measure.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public readonly struct Measure : IEquatable -{ - public string Name { get; } - public long Value { get; } - public Measure(string name, long value); - public override bool Equals(object? obj); - public bool Equals(Measure other); - public override int GetHashCode(); - public static bool operator ==(Measure left, Measure right); - public static bool operator !=(Measure left, Measure right); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/MeasureToken.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/MeasureToken.cs deleted file mode 100644 index 807710af2c4..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/MeasureToken.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public readonly struct MeasureToken -{ - public string Name { get; } - public int Position { get; } - public MeasureToken(string name, int position); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/NullLatencyContextExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/NullLatencyContextExtensions.cs deleted file mode 100644 index b5975c80413..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/NullLatencyContextExtensions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public static class NullLatencyContextExtensions -{ - public static IServiceCollection AddNullLatencyContext(this IServiceCollection services); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Tag.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Tag.cs deleted file mode 100644 index 7ddf39b4963..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/Tag.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public readonly struct Tag -{ - public string Name { get; } - public string Value { get; } - public Tag(string name, string value); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/TagToken.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/TagToken.cs deleted file mode 100644 index ed0c98e099d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Latency/TagToken.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -public readonly struct TagToken -{ - public string Name { get; } - public int Position { get; } - public TagToken(string name, int position); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/CollectedMeasurement.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/CollectedMeasurement.cs deleted file mode 100644 index 9ee9ba91a4e..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/CollectedMeasurement.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics.Testing; - -[DebuggerDisplay("{DebuggerToString(),nq}")] -public sealed class CollectedMeasurement where T : struct -{ - public T Value { get; } - public DateTimeOffset Timestamp { get; } - public IReadOnlyDictionary Tags { get; } - public bool ContainsTags(params KeyValuePair[] tags); - public bool ContainsTags(params string[] tags); - public bool MatchesTags(params KeyValuePair[] tags); - public bool MatchesTags(params string[] tags); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MeasurementExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MeasurementExtensions.cs deleted file mode 100644 index ab425d1aa0b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MeasurementExtensions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System.Collections.Generic; - -namespace Microsoft.Extensions.Diagnostics.Metrics.Testing; - -public static class MeasurementExtensions -{ - public static IEnumerable> ContainsTags(this IEnumerable> measurements, params KeyValuePair[] tags) where T : struct; - public static IEnumerable> ContainsTags(this IEnumerable> measurements, params string[] tags) where T : struct; - public static IEnumerable> MatchesTags(this IEnumerable> measurements, params KeyValuePair[] tags) where T : struct; - public static IEnumerable> MatchesTags(this IEnumerable> measurements, params string[] tags) where T : struct; - public static T EvaluateAsCounter(this IEnumerable> measurements) where T : struct; -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MetricCollector.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MetricCollector.cs deleted file mode 100644 index 0ba2186bd36..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MetricCollector.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.Metrics; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Diagnostics.Metrics.Testing; - -[DebuggerDisplay("{_measurements.Count} measurements")] -public sealed class MetricCollector : IDisposable where T : struct -{ - public Instrument? Instrument { get; } - public CollectedMeasurement? LastMeasurement { get; } - public MetricCollector(Instrument instrument, TimeProvider? timeProvider = null); - public MetricCollector(ObservableInstrument instrument, TimeProvider? timeProvider = null); - public MetricCollector(object? meterScope, string meterName, string instrumentName, TimeProvider? timeProvider = null); - public MetricCollector(Meter meter, string instrumentName, TimeProvider? timeProvider = null); - public void Dispose(); - public void Clear(); - public IReadOnlyList> GetMeasurementSnapshot(bool clear = false); - public Task WaitForMeasurementsAsync(int minCount, CancellationToken cancellationToken = default(CancellationToken)); - public Task WaitForMeasurementsAsync(int minCount, TimeSpan timeout); - public void RecordObservableInstruments(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.T.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.T.cs deleted file mode 100644 index e62322eb047..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.T.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class CounterAttribute : Attribute where T : struct -{ - public string? Name { get; set; } - public string[]? TagNames { get; } - public Type? Type { get; } - public CounterAttribute(params string[] tagNames); - public CounterAttribute(Type type); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.cs deleted file mode 100644 index c0e6f48d8b7..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class CounterAttribute : Attribute -{ - public string? Name { get; set; } - public string[]? TagNames { get; } - public Type? Type { get; } - public CounterAttribute(params string[] tagNames); - public CounterAttribute(Type type); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/GaugeAttribute.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/GaugeAttribute.cs deleted file mode 100644 index c6b6d9190a5..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/GaugeAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class GaugeAttribute : Attribute -{ - public string? Name { get; set; } - public string[]? TagNames { get; } - public Type? Type { get; } - public GaugeAttribute(params string[] tagNames); - public GaugeAttribute(Type type); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.T.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.T.cs deleted file mode 100644 index e71ad47912f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.T.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class HistogramAttribute : Attribute where T : struct -{ - public string? Name { get; set; } - public string[]? TagNames { get; } - public Type? Type { get; } - public HistogramAttribute(params string[] tagNames); - public HistogramAttribute(Type type); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.cs deleted file mode 100644 index 20d3fadb0d4..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class HistogramAttribute : Attribute -{ - public string? Name { get; set; } - public string[]? TagNames { get; } - public Type? Type { get; } - public HistogramAttribute(params string[] tagNames); - public HistogramAttribute(Type type); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/Meter.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/Meter.cs deleted file mode 100644 index 1373f5c6cb1..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/Meter.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Diagnostics.CodeAnalysis; -using System.Diagnostics.Metrics; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -[Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public class Meter : Meter -{ - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public Meter(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/MetricsExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/MetricsExtensions.cs deleted file mode 100644 index adf9814c12b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/MetricsExtensions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -public static class MetricsExtensions -{ - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IServiceCollection RegisterMetrics(this IServiceCollection services); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/TagNameAttribute.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/TagNameAttribute.cs deleted file mode 100644 index 2368c41a136..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Metrics/TagNameAttribute.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] -public sealed class TagNameAttribute : Attribute -{ - public string Name { get; } - public TagNameAttribute(string name); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesExtensions.cs deleted file mode 100644 index 2c7904c0a57..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesExtensions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.Probes' - -using System; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Probes; - -public static class KubernetesProbesExtensions -{ - public static IServiceCollection AddKubernetesProbes(this IServiceCollection services); - public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, IConfigurationSection section); - public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, Action configure); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesOptions.cs deleted file mode 100644 index e15f46a6647..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesOptions.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.Probes' - -using System; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Diagnostics.HealthChecks; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Diagnostics.Probes; - -public class KubernetesProbesOptions -{ - public class EndpointOptions - { - [Range(1, 65535)] - public int TcpPort { get; set; } - [Range(1, 10000)] - public int MaxPendingConnections { get; set; } - [TimeSpan("00:00:05", "00:05:00")] - public TimeSpan HealthAssessmentPeriod { get; set; } - public Func? FilterChecks { get; set; } - public EndpointOptions(); - } - public EndpointOptions LivenessProbe { get; set; } - public EndpointOptions StartupProbe { get; set; } - public EndpointOptions ReadinessProbe { get; set; } - public KubernetesProbesOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/ProbeTags.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/ProbeTags.cs deleted file mode 100644 index 2a2baac2142..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.Probes/ProbeTags.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.Probes' - -namespace Microsoft.Extensions.Diagnostics.Probes; - -public static class ProbeTags -{ - public const string Liveness = "_probe_liveness"; - public const string Startup = "_probe_startup"; - public const string Readiness = "_probe_readiness"; -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitor.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitor.cs deleted file mode 100644 index 4267104dd0f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitor.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -public interface IResourceMonitor -{ - ResourceUtilization GetUtilization(TimeSpan window); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitorBuilder.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitorBuilder.cs deleted file mode 100644 index 1d8f44df191..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitorBuilder.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -public interface IResourceMonitorBuilder -{ - IServiceCollection Services { get; } - IResourceMonitorBuilder AddPublisher() where T : class, IResourceUtilizationPublisher; -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs deleted file mode 100644 index fe998655aec..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -public interface IResourceUtilizationPublisher -{ - ValueTask PublishAsync(ResourceUtilization utilization, CancellationToken cancellationToken); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringExtensions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringExtensions.cs deleted file mode 100644 index 19efc76231f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringExtensions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Diagnostics.ResourceMonitoring.Internal; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -public static class ResourceMonitoringExtensions -{ - public static IServiceCollection AddResourceMonitoring(this IServiceCollection services); - public static IServiceCollection AddResourceMonitoring(this IServiceCollection services, Action configure); - public static IResourceMonitorBuilder ConfigureMonitor(this IResourceMonitorBuilder builder, Action configure); - public static IResourceMonitorBuilder ConfigureMonitor(this IResourceMonitorBuilder builder, IConfigurationSection section); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringOptions.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringOptions.cs deleted file mode 100644 index 9cb884752df..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -public class ResourceMonitoringOptions -{ - [TimeSpan(100, 900000)] - public TimeSpan CollectionWindow { get; set; } - [TimeSpan(1, 900000)] - public TimeSpan SamplingInterval { get; set; } - [TimeSpan(100, 900000)] - public TimeSpan PublishingWindow { get; set; } - [TimeSpan(100, 900000)] - public TimeSpan CpuConsumptionRefreshInterval { get; set; } - [TimeSpan(100, 900000)] - public TimeSpan MemoryConsumptionRefreshInterval { get; set; } - [Required] - public ISet SourceIpAddresses { get; set; } - public ResourceMonitoringOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilization.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilization.cs deleted file mode 100644 index bd2f6af6e0e..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilization.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Diagnostics.ResourceMonitoring.Internal; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -public readonly struct ResourceUtilization -{ - public double CpuUsedPercentage { get; } - public double MemoryUsedPercentage { get; } - public ulong MemoryUsedInBytes { get; } - public SystemResources SystemResources { get; } - public ResourceUtilization(double cpuUsedPercentage, ulong memoryUsedInBytes, SystemResources systemResources); -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationCounters.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationCounters.cs deleted file mode 100644 index 91ba2c0a0a9..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationCounters.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -public static class ResourceUtilizationCounters -{ - public static string CpuConsumptionPercentage { get; } - public static string MemoryConsumptionPercentage { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/SystemResources.cs b/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/SystemResources.cs deleted file mode 100644 index f9e9b52d724..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/SystemResources.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -public readonly struct SystemResources -{ - public double GuaranteedCpuUnits { get; } - public double MaximumCpuUnits { get; } - public ulong GuaranteedMemoryInBytes { get; } - public ulong MaximumMemoryInBytes { get; } - public SystemResources(double guaranteedCpuUnits, double maximumCpuUnits, ulong guaranteedMemoryInBytes, ulong maximumMemoryInBytes); -} diff --git a/API/NoDocs/Microsoft.Extensions.EnumStrings/EnumStringsAttribute.cs b/API/NoDocs/Microsoft.Extensions.EnumStrings/EnumStringsAttribute.cs deleted file mode 100644 index 671910513ef..00000000000 --- a/API/NoDocs/Microsoft.Extensions.EnumStrings/EnumStringsAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.EnumStrings' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.EnumStrings; - -[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Enum, AllowMultiple = true)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class EnumStringsAttribute : Attribute -{ - public Type? EnumType { get; } - public string? ExtensionNamespace { get; set; } - public string? ExtensionClassName { get; set; } - public string ExtensionMethodName { get; set; } - public string ExtensionClassModifiers { get; set; } - public EnumStringsAttribute(); - public EnumStringsAttribute(Type enumType); -} diff --git a/API/NoDocs/Microsoft.Extensions.Hosting.Testing/FakeHost.cs b/API/NoDocs/Microsoft.Extensions.Hosting.Testing/FakeHost.cs deleted file mode 100644 index 14589cfbd55..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Hosting.Testing/FakeHost.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Hosting.Testing' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Hosting.Testing; - -public sealed class FakeHost : IHost, IDisposable -{ - public IServiceProvider Services { get; } - public static IHostBuilder CreateBuilder(); - public static IHostBuilder CreateBuilder(Action configure); - public static IHostBuilder CreateBuilder(FakeHostOptions options); - public Task StartAsync(CancellationToken cancellationToken = default(CancellationToken)); - public Task StopAsync(CancellationToken cancellationToken = default(CancellationToken)); - public void Dispose(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Hosting.Testing/FakeHostOptions.cs b/API/NoDocs/Microsoft.Extensions.Hosting.Testing/FakeHostOptions.cs deleted file mode 100644 index 0d6ddfd41b2..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Hosting.Testing/FakeHostOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Hosting.Testing' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Hosting.Testing; - -public class FakeHostOptions -{ - public TimeSpan StartUpTimeout { get; set; } - public TimeSpan ShutDownTimeout { get; set; } - public TimeSpan TimeToLive { get; set; } - public bool FakeLogging { get; set; } - public bool ValidateScopes { get; set; } - public bool ValidateOnBuild { get; set; } - public bool FakeRedaction { get; set; } - public FakeHostOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs b/API/NoDocs/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs deleted file mode 100644 index 47482486d94..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Assembly 'Microsoft.Extensions.Hosting.Testing' - -using System; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Compliance.Testing; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging.Testing; - -namespace Microsoft.Extensions.Hosting.Testing; - -[Experimental("EXTEXP0009", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class HostingFakesExtensions -{ - public static Task StartAndStopAsync(this IHostedService service, CancellationToken cancellationToken = default(CancellationToken)); - public static FakeLogCollector GetFakeLogCollector(this IHost host); - public static FakeRedactionCollector GetFakeRedactionCollector(this IHost host); - public static IHostBuilder AddFakeLoggingOutputSink(this IHostBuilder builder, Action callback); - public static IHostBuilder Configure(this IHostBuilder builder, Action configure); - public static IHostBuilder ConfigureHostConfiguration(this IHostBuilder builder, params (string key, string value)[] configurations); - public static IHostBuilder ConfigureHostConfiguration(this IHostBuilder builder, string key, string value); - public static IHostBuilder ConfigureAppConfiguration(this IHostBuilder builder, params (string key, string value)[] configurations); - public static IHostBuilder ConfigureAppConfiguration(this IHostBuilder builder, string key, string value); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientAttribute.cs deleted file mode 100644 index 14f647f634f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientAttribute.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Interface)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class AutoClientAttribute : Attribute -{ - public string HttpClientName { get; } - public string? CustomDependencyName { get; } - public AutoClientAttribute(string httpClientName); - public AutoClientAttribute(string httpClientName, string customDependencyName); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientException.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientException.cs deleted file mode 100644 index 560ab64a517..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientException.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -public class AutoClientException : Exception -{ - public AutoClientHttpError? HttpError { get; } - public string Path { get; } - public int? StatusCode { get; } - public AutoClientException(string message, string path, AutoClientHttpError? error = null); - public AutoClientException(string message, Exception innerException, string path, AutoClientHttpError? error = null); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientHttpError.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientHttpError.cs deleted file mode 100644 index a6f1dcb9ae5..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientHttpError.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System.Collections.Generic; -using System.Diagnostics; -using System.Net.Http; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.Extensions.Http.AutoClient; - -public class AutoClientHttpError -{ - public int StatusCode { get; } - public IReadOnlyDictionary ResponseHeaders { get; } - public string RawContent { get; } - public string? ReasonPhrase { get; } - public AutoClientHttpError(int statusCode, IReadOnlyDictionary responseHeaders, string rawContent, string? reasonPhrase); - public static Task CreateAsync(HttpResponseMessage response, CancellationToken cancellationToken); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptions.cs deleted file mode 100644 index 66fbd7a1176..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using System.Text.Json; - -namespace Microsoft.Extensions.Http.AutoClient; - -public class AutoClientOptions -{ - [Required] - public JsonSerializerOptions JsonSerializerOptions { get; set; } - public AutoClientOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptionsValidator.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptionsValidator.cs deleted file mode 100644 index 63ce7c36cc0..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptionsValidator.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System.CodeDom.Compiler; -using System.ComponentModel; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.AutoClient; - -[EditorBrowsable(EditorBrowsableState.Never)] -[OptionsValidator] -public sealed class AutoClientOptionsValidator : IValidateOptions -{ - [GeneratedCode("Microsoft.Extensions.Options.SourceGeneration", "8.0.8.46416")] - public ValidateOptionsResult Validate(string? name, AutoClientOptions options); - public AutoClientOptionsValidator(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/BodyAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/BodyAttribute.cs deleted file mode 100644 index 7ed6f9741a6..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/BodyAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class BodyAttribute : Attribute -{ - public BodyContentType ContentType { get; } - public BodyAttribute(); - public BodyAttribute(BodyContentType contentType); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/BodyContentType.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/BodyContentType.cs deleted file mode 100644 index 690b1eeab8b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/BodyContentType.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -namespace Microsoft.Extensions.Http.AutoClient; - -public enum BodyContentType -{ - ApplicationJson = 0, - TextPlain = 1 -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs deleted file mode 100644 index 65878ac7476..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Method)] -public sealed class DeleteAttribute : Attribute -{ - public string Path { get; } - public string? RequestName { get; set; } - public DeleteAttribute(string path); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs deleted file mode 100644 index f845a7832b2..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Method)] -public sealed class GetAttribute : Attribute -{ - public string Path { get; } - public string? RequestName { get; set; } - public GetAttribute(string path); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs deleted file mode 100644 index 38896191b83..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Method)] -public sealed class HeadAttribute : Attribute -{ - public string Path { get; } - public string? RequestName { get; set; } - public HeadAttribute(string path); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/HeaderAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/HeaderAttribute.cs deleted file mode 100644 index cfa62646d1a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/HeaderAttribute.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class HeaderAttribute : Attribute -{ - public string Header { get; } - public HeaderAttribute(string header); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs deleted file mode 100644 index 2463aefabc1..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Method)] -public sealed class OptionsAttribute : Attribute -{ - public string Path { get; } - public string? RequestName { get; set; } - public OptionsAttribute(string path); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs deleted file mode 100644 index b4dfa93730a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Method)] -public sealed class PatchAttribute : Attribute -{ - public string Path { get; } - public string? RequestName { get; set; } - public PatchAttribute(string path); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs deleted file mode 100644 index a5ac711d381..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Method)] -public sealed class PostAttribute : Attribute -{ - public string Path { get; } - public string? RequestName { get; set; } - public PostAttribute(string path); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs deleted file mode 100644 index 5f1b357d9a3..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Method)] -public sealed class PutAttribute : Attribute -{ - public string Path { get; } - public string? RequestName { get; set; } - public PutAttribute(string path); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/QueryAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/QueryAttribute.cs deleted file mode 100644 index c273b32dd22..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/QueryAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class QueryAttribute : Attribute -{ - public string? Key { get; } - public QueryAttribute(); - public QueryAttribute(string key); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/StaticHeaderAttribute.cs b/API/NoDocs/Microsoft.Extensions.Http.AutoClient/StaticHeaderAttribute.cs deleted file mode 100644 index 4f76b23a99b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.AutoClient/StaticHeaderAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -[AttributeUsage(AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = true)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class StaticHeaderAttribute : Attribute -{ - public string Header { get; } - public string Value { get; } - public StaticHeaderAttribute(string header, string value); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/HttpRouteParameterRedactionMode.cs b/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/HttpRouteParameterRedactionMode.cs deleted file mode 100644 index a4990734069..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/HttpRouteParameterRedactionMode.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Http.Diagnostics; - -public enum HttpRouteParameterRedactionMode -{ - Strict = 0, - Loose = 1, - None = 2 -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/IDownstreamDependencyMetadata.cs b/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/IDownstreamDependencyMetadata.cs deleted file mode 100644 index f6353fe8467..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/IDownstreamDependencyMetadata.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Collections.Generic; - -namespace Microsoft.Extensions.Http.Diagnostics; - -public interface IDownstreamDependencyMetadata -{ - string DependencyName { get; } - ISet UniqueHostNameSuffixes { get; } - ISet RequestMetadata { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/IOutgoingRequestContext.cs b/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/IOutgoingRequestContext.cs deleted file mode 100644 index 8f6180263fe..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/IOutgoingRequestContext.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Http.Diagnostics; - -public interface IOutgoingRequestContext -{ - RequestMetadata? RequestMetadata { get; } - void SetRequestMetadata(RequestMetadata metadata); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/RequestMetadata.cs b/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/RequestMetadata.cs deleted file mode 100644 index 43dc59949ee..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/RequestMetadata.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Diagnostics; - -public class RequestMetadata -{ - public string RequestRoute { get; set; } - public string RequestName { get; set; } - public string DependencyName { get; set; } - public string MethodType { get; set; } - public RequestMetadata(); - public RequestMetadata(string methodType, string requestRoute, string requestName = "unknown"); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryConstants.cs b/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryConstants.cs deleted file mode 100644 index 99eb793361d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryConstants.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Http.Diagnostics; - -public static class TelemetryConstants -{ - public const string RequestMetadataKey = "R9-RequestMetadata"; - public const string Unknown = "unknown"; - public const string Redacted = "REDACTED"; - public const string ClientApplicationNameHeader = "X-ClientApplication"; - public const string ServerApplicationNameHeader = "X-ServerApplication"; -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryExtensions.cs deleted file mode 100644 index aedb17c4c79..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryExtensions.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System.Net; -using System.Net.Http; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Diagnostics; - -public static class TelemetryExtensions -{ - public static void SetRequestMetadata(this HttpWebRequest request, RequestMetadata metadata); - public static void SetRequestMetadata(this HttpRequestMessage request, RequestMetadata metadata); - public static RequestMetadata? GetRequestMetadata(this HttpWebRequest request); - public static RequestMetadata? GetRequestMetadata(this HttpRequestMessage request); - public static IServiceCollection AddDownstreamDependencyMetadata(this IServiceCollection services, IDownstreamDependencyMetadata downstreamDependencyMetadata); - public static IServiceCollection AddDownstreamDependencyMetadata(this IServiceCollection services) where T : class, IDownstreamDependencyMetadata; -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryExtensions.cs deleted file mode 100644 index 6897d01aa3a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryExtensions.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Http.Logging; - -namespace Microsoft.Extensions.Http.Latency; - -public static class HttpClientLatencyTelemetryExtensions -{ - public static IServiceCollection AddDefaultHttpClientLatencyTelemetry(this IServiceCollection services); - public static IServiceCollection AddDefaultHttpClientLatencyTelemetry(this IServiceCollection services, IConfigurationSection section); - public static IServiceCollection AddDefaultHttpClientLatencyTelemetry(this IServiceCollection services, Action configure); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryOptions.cs deleted file mode 100644 index 4194983b62e..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Latency; - -public class HttpClientLatencyTelemetryOptions -{ - public bool EnableDetailedLatencyBreakdown { get; set; } - public HttpClientLatencyTelemetryOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingExtensions.cs deleted file mode 100644 index a4267a010a2..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Logging; - -public static class HttpClientLoggingExtensions -{ - public static IServiceCollection AddDefaultHttpClientLogging(this IServiceCollection services); - public static IServiceCollection AddDefaultHttpClientLogging(this IServiceCollection services, IConfigurationSection section); - public static IServiceCollection AddDefaultHttpClientLogging(this IServiceCollection services, Action configure); - public static IHttpClientBuilder AddHttpClientLogging(this IHttpClientBuilder builder); - public static IHttpClientBuilder AddHttpClientLogging(this IHttpClientBuilder builder, IConfigurationSection section); - public static IHttpClientBuilder AddHttpClientLogging(this IHttpClientBuilder builder, Action configure); - public static IServiceCollection AddHttpClientLogEnricher(this IServiceCollection services) where T : class, IHttpClientLogEnricher; -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingTagNames.cs b/API/NoDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingTagNames.cs deleted file mode 100644 index 178cdbd776a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingTagNames.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Logging; - -public static class HttpClientLoggingTagNames -{ - public const string Duration = "duration"; - public const string Host = "httpHost"; - public const string Method = "httpMethod"; - public const string Path = "httpPath"; - public const string RequestBody = "httpRequestBody"; - public const string ResponseBody = "httpResponseBody"; - public const string RequestHeaderPrefix = "httpRequestHeader_"; - public const string ResponseHeaderPrefix = "httpResponseHeader_"; - public const string StatusCode = "httpStatusCode"; - public static IReadOnlyList TagNames { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Logging/IHttpClientLogEnricher.cs b/API/NoDocs/Microsoft.Extensions.Http.Logging/IHttpClientLogEnricher.cs deleted file mode 100644 index 67455e2c591..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Logging/IHttpClientLogEnricher.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System; -using System.Net.Http; -using Microsoft.Extensions.Diagnostics.Enrichment; - -namespace Microsoft.Extensions.Http.Logging; - -public interface IHttpClientLogEnricher -{ - void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Logging/LoggingOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Logging/LoggingOptions.cs deleted file mode 100644 index 4e2744dd9e6..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Logging/LoggingOptions.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Http.Diagnostics; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Http.Logging; - -public class LoggingOptions -{ - public bool LogRequestStart { get; set; } - public bool LogBody { get; set; } - [Range(1, 1572864)] - public int BodySizeLimit { get; set; } - [TimeSpan(1, 3600000)] - public TimeSpan BodyReadTimeout { get; set; } - [Required] - public ISet RequestBodyContentTypes { get; set; } - [Required] - public ISet ResponseBodyContentTypes { get; set; } - [Required] - public IDictionary RequestHeadersDataClasses { get; set; } - [Required] - public IDictionary ResponseHeadersDataClasses { get; set; } - public OutgoingPathLoggingMode RequestPathLoggingMode { get; set; } - public HttpRouteParameterRedactionMode RequestPathParameterRedactionMode { get; set; } - [Required] - public IDictionary RouteParameterDataClasses { get; set; } - public LoggingOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Logging/OutgoingPathLoggingMode.cs b/API/NoDocs/Microsoft.Extensions.Http.Logging/OutgoingPathLoggingMode.cs deleted file mode 100644 index 6c294bedb7d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Logging/OutgoingPathLoggingMode.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -namespace Microsoft.Extensions.Http.Logging; - -public enum OutgoingPathLoggingMode -{ - Formatted = 0, - Structured = 1 -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/ContextExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/ContextExtensions.cs deleted file mode 100644 index 36f1879035c..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/ContextExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Diagnostics.CodeAnalysis; -using System.Net.Http; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience.FaultInjection; - -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class ContextExtensions -{ - public static Context WithCallingRequestMessage(this Context context, HttpRequestMessage request); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpClientFaultInjectionExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpClientFaultInjectionExtensions.cs deleted file mode 100644 index 4fa19ea4c08..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpClientFaultInjectionExtensions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Resilience.FaultInjection; - -namespace Microsoft.Extensions.Http.Resilience.FaultInjection; - -public static class HttpClientFaultInjectionExtensions -{ - public static IServiceCollection AddHttpClientFaultInjection(this IServiceCollection services); - public static IServiceCollection AddHttpClientFaultInjection(this IServiceCollection services, IConfiguration section); - public static IServiceCollection AddHttpClientFaultInjection(this IServiceCollection services, Action configure); - public static IHttpClientBuilder AddFaultInjectionPolicyHandler(this IHttpClientBuilder httpClientBuilder, string chaosPolicyOptionsGroupName); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IHttpClientBuilder AddWeightedFaultInjectionPolicyHandlers(this IHttpClientBuilder httpClientBuilder, Action weightAssignmentsConfig); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IHttpClientBuilder AddWeightedFaultInjectionPolicyHandlers(this IHttpClientBuilder httpClientBuilder, IConfigurationSection weightAssignmentsConfigSection); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpFaultInjectionOptionsBuilder.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpFaultInjectionOptionsBuilder.cs deleted file mode 100644 index 4c272160b6d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpFaultInjectionOptionsBuilder.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Resilience.FaultInjection; - -namespace Microsoft.Extensions.Http.Resilience.FaultInjection; - -public class HttpFaultInjectionOptionsBuilder -{ - public HttpFaultInjectionOptionsBuilder(IServiceCollection services); - public HttpFaultInjectionOptionsBuilder Configure(); - public HttpFaultInjectionOptionsBuilder Configure(IConfiguration section); - public HttpFaultInjectionOptionsBuilder Configure(Action configureOptions); - public HttpFaultInjectionOptionsBuilder AddException(string key, Exception exception); - public HttpFaultInjectionOptionsBuilder AddHttpContent(string key, HttpContent content); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/IHttpClientChaosPolicyFactory.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/IHttpClientChaosPolicyFactory.cs deleted file mode 100644 index 2023bad6833..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/IHttpClientChaosPolicyFactory.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly.Contrib.Simmy.Outcomes; - -namespace Microsoft.Extensions.Http.Resilience.FaultInjection; - -public interface IHttpClientChaosPolicyFactory -{ - AsyncInjectOutcomePolicy CreateHttpResponsePolicy(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/Endpoint.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/Endpoint.cs deleted file mode 100644 index 4e4e3828f17..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/Endpoint.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.ComponentModel.DataAnnotations; - -namespace Microsoft.Extensions.Http.Resilience; - -public class Endpoint -{ - [Required] - public Uri? Uri { get; set; } - public Endpoint(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/EndpointGroup.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/EndpointGroup.cs deleted file mode 100644 index dcffd9366cb..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/EndpointGroup.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -public class EndpointGroup -{ - [Length(1, int.MaxValue)] - [ValidateEnumeratedItems] - public IList Endpoints { get; set; } - public EndpointGroup(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HedgingEndpointOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HedgingEndpointOptions.cs deleted file mode 100644 index 21fa3124c12..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HedgingEndpointOptions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -public class HedgingEndpointOptions -{ - [Required] - [ValidateObjectMembers] - public HttpRateLimiterStrategyOptions RateLimiterOptions { get; set; } - [Required] - [ValidateObjectMembers] - public HttpCircuitBreakerStrategyOptions CircuitBreakerOptions { get; set; } - [Required] - [ValidateObjectMembers] - public HttpTimeoutStrategyOptions TimeoutOptions { get; set; } - public HedgingEndpointOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpCircuitBreakerStrategyOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpCircuitBreakerStrategyOptions.cs deleted file mode 100644 index 8add2fef873..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpCircuitBreakerStrategyOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly.CircuitBreaker; - -namespace Microsoft.Extensions.Http.Resilience; - -public class HttpCircuitBreakerStrategyOptions : CircuitBreakerStrategyOptions -{ - public HttpCircuitBreakerStrategyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientBuilderExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientBuilderExtensions.cs deleted file mode 100644 index 51594b4ccb0..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientBuilderExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience; - -public static class HttpClientBuilderExtensions -{ - public static IStandardHedgingHandlerBuilder AddStandardHedgingHandler(this IHttpClientBuilder builder, Action configure); - public static IStandardHedgingHandlerBuilder AddStandardHedgingHandler(this IHttpClientBuilder builder); - public static IHttpResiliencePipelineBuilder AddResilienceHandler(this IHttpClientBuilder builder, string pipelineName, Action> configure); - public static IHttpResiliencePipelineBuilder AddResilienceHandler(this IHttpClientBuilder builder, string pipelineName, Action, ResilienceHandlerContext> configure); - public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder, IConfigurationSection section); - public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder, Action configure); - public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientHedgingResiliencePredicates.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientHedgingResiliencePredicates.cs deleted file mode 100644 index a447c1e6809..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientHedgingResiliencePredicates.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience; - -public static class HttpClientHedgingResiliencePredicates -{ - public static readonly Predicate IsTransientHttpException; - public static readonly Predicate> IsTransientHttpOutcome; -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientResiliencePredicates.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientResiliencePredicates.cs deleted file mode 100644 index e438733f5e2..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpClientResiliencePredicates.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience; - -public static class HttpClientResiliencePredicates -{ - public static readonly Predicate IsTransientHttpException; - public static readonly Predicate IsTransientHttpFailure; - public static readonly Predicate> IsTransientHttpOutcome; -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpHedgingStrategyOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpHedgingStrategyOptions.cs deleted file mode 100644 index bfde199fd2b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpHedgingStrategyOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly.Hedging; - -namespace Microsoft.Extensions.Http.Resilience; - -public class HttpHedgingStrategyOptions : HedgingStrategyOptions -{ - public HttpHedgingStrategyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRateLimiterStrategyOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRateLimiterStrategyOptions.cs deleted file mode 100644 index f449c1fa19f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRateLimiterStrategyOptions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Polly.RateLimiting; - -namespace Microsoft.Extensions.Http.Resilience; - -public class HttpRateLimiterStrategyOptions : RateLimiterStrategyOptions -{ - public HttpRateLimiterStrategyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRequestMessageExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRequestMessageExtensions.cs deleted file mode 100644 index ef55e3f52fd..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRequestMessageExtensions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience; - -public static class HttpRequestMessageExtensions -{ - public static ResilienceContext? GetResilienceContext(this HttpRequestMessage requestMessage); - public static void SetResilienceContext(this HttpRequestMessage requestMessage, ResilienceContext? resilienceContext); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpResiliencePipelineBuilderExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpResiliencePipelineBuilderExtensions.cs deleted file mode 100644 index 85f85b505af..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpResiliencePipelineBuilderExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Http.Resilience; - -public static class HttpResiliencePipelineBuilderExtensions -{ - public static IHttpResiliencePipelineBuilder SelectPipelineByAuthority(this IHttpResiliencePipelineBuilder builder, DataClassification classification); - public static IHttpResiliencePipelineBuilder SelectPipelineBy(this IHttpResiliencePipelineBuilder builder, Func> selectorFactory); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRetryStrategyOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRetryStrategyOptions.cs deleted file mode 100644 index b337dc6db38..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpRetryStrategyOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly.Retry; - -namespace Microsoft.Extensions.Http.Resilience; - -public class HttpRetryStrategyOptions : RetryStrategyOptions -{ - public bool ShouldRetryAfterHeader { get; set; } - public HttpRetryStrategyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardHedgingResilienceOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardHedgingResilienceOptions.cs deleted file mode 100644 index 915debaaf0c..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardHedgingResilienceOptions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -public class HttpStandardHedgingResilienceOptions -{ - [Required] - [ValidateObjectMembers] - public HttpTimeoutStrategyOptions TotalRequestTimeoutOptions { get; set; } - [Required] - [ValidateObjectMembers] - public HttpHedgingStrategyOptions HedgingOptions { get; set; } - [Required] - [ValidateObjectMembers] - public HedgingEndpointOptions EndpointOptions { get; set; } - public HttpStandardHedgingResilienceOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceBuilderBuilderExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceBuilderBuilderExtensions.cs deleted file mode 100644 index 265abd47158..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceBuilderBuilderExtensions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using System.Net.Http; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Configuration; - -namespace Microsoft.Extensions.Http.Resilience; - -public static class HttpStandardResilienceBuilderBuilderExtensions -{ - public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, IConfigurationSection section); - public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, Action configure); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, Action configure); - public static IHttpStandardResiliencePipelineBuilder SelectPipelineByAuthority(this IHttpStandardResiliencePipelineBuilder builder, DataClassification classification); - public static IHttpStandardResiliencePipelineBuilder SelectPipelineBy(this IHttpStandardResiliencePipelineBuilder builder, Func> selectorFactory); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceOptions.cs deleted file mode 100644 index db9587575f4..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceOptions.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -public class HttpStandardResilienceOptions -{ - [Required] - [ValidateObjectMembers] - public HttpRateLimiterStrategyOptions RateLimiterOptions { get; set; } - [Required] - [ValidateObjectMembers] - public HttpTimeoutStrategyOptions TotalRequestTimeoutOptions { get; set; } - [Required] - [ValidateObjectMembers] - public HttpRetryStrategyOptions RetryOptions { get; set; } - [Required] - [ValidateObjectMembers] - public HttpCircuitBreakerStrategyOptions CircuitBreakerOptions { get; set; } - [Required] - [ValidateObjectMembers] - public HttpTimeoutStrategyOptions AttemptTimeoutOptions { get; set; } - public HttpStandardResilienceOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpTimeoutStrategyOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpTimeoutStrategyOptions.cs deleted file mode 100644 index 9e3c81aba85..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/HttpTimeoutStrategyOptions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Polly.Timeout; - -namespace Microsoft.Extensions.Http.Resilience; - -public class HttpTimeoutStrategyOptions : TimeoutStrategyOptions -{ - public HttpTimeoutStrategyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/IHttpResiliencePipelineBuilder.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/IHttpResiliencePipelineBuilder.cs deleted file mode 100644 index 4e9b8ae046a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/IHttpResiliencePipelineBuilder.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -public interface IHttpResiliencePipelineBuilder -{ - string PipelineName { get; } - IServiceCollection Services { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/IHttpStandardResiliencePipelineBuilder.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/IHttpStandardResiliencePipelineBuilder.cs deleted file mode 100644 index 84178ea3c2a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/IHttpStandardResiliencePipelineBuilder.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -public interface IHttpStandardResiliencePipelineBuilder -{ - string PipelineName { get; } - IServiceCollection Services { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/IRoutingStrategyBuilder.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/IRoutingStrategyBuilder.cs deleted file mode 100644 index 290f8be2b8f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/IRoutingStrategyBuilder.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -public interface IRoutingStrategyBuilder -{ - string Name { get; } - IServiceCollection Services { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/IStandardHedgingHandlerBuilder.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/IStandardHedgingHandlerBuilder.cs deleted file mode 100644 index 8633e257933..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/IStandardHedgingHandlerBuilder.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -public interface IStandardHedgingHandlerBuilder -{ - string Name { get; } - IServiceCollection Services { get; } - IRoutingStrategyBuilder RoutingStrategyBuilder { get; } -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/OrderedGroupsRoutingOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/OrderedGroupsRoutingOptions.cs deleted file mode 100644 index 74d0813e4eb..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/OrderedGroupsRoutingOptions.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -public class OrderedGroupsRoutingOptions -{ - [Required] - [Length(1, int.MaxValue)] - [ValidateEnumeratedItems] - public IList Groups { get; set; } - public OrderedGroupsRoutingOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/ResilienceHandlerContext.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/ResilienceHandlerContext.cs deleted file mode 100644 index 02ded1d1f47..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/ResilienceHandlerContext.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using Microsoft.Extensions.Http.Resilience.Internal; -using Polly.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -public sealed class ResilienceHandlerContext -{ - public IServiceProvider ServiceProvider { get; } - public string BuilderName { get; } - public string InstanceName { get; } - public void EnableReloads(string? name = null); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/RoutingStrategyBuilderExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/RoutingStrategyBuilderExtensions.cs deleted file mode 100644 index 0cd7d127833..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/RoutingStrategyBuilderExtensions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Http.Resilience.Routing.Internal; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -public static class RoutingStrategyBuilderExtensions -{ - public static IRoutingStrategyBuilder ConfigureOrderedGroups(this IRoutingStrategyBuilder builder, IConfigurationSection section); - public static IRoutingStrategyBuilder ConfigureOrderedGroups(this IRoutingStrategyBuilder builder, Action configure); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IRoutingStrategyBuilder ConfigureOrderedGroups(this IRoutingStrategyBuilder builder, Action configure); - public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, IConfigurationSection section); - public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, Action configure); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, Action configure); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/StandardHedgingHandlerBuilderExtensions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/StandardHedgingHandlerBuilderExtensions.cs deleted file mode 100644 index 3d5f10f2a96..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/StandardHedgingHandlerBuilderExtensions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using System.Net.Http; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Configuration; - -namespace Microsoft.Extensions.Http.Resilience; - -public static class StandardHedgingHandlerBuilderExtensions -{ - public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, IConfigurationSection section); - public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, Action configure); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, Action configure); - public static IStandardHedgingHandlerBuilder SelectPipelineByAuthority(this IStandardHedgingHandlerBuilder builder, DataClassification classification); - public static IStandardHedgingHandlerBuilder SelectPipelineBy(this IStandardHedgingHandlerBuilder builder, Func> selectorFactory); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpoint.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpoint.cs deleted file mode 100644 index df39e1937c5..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpoint.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Resilience; - -public class WeightedEndpoint -{ - [Required] - public Uri? Uri { get; set; } - [Range(1, 64000)] - public int Weight { get; set; } - public WeightedEndpoint(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpointGroup.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpointGroup.cs deleted file mode 100644 index 21cd7eac997..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpointGroup.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Resilience; - -public class WeightedEndpointGroup : EndpointGroup -{ - [Range(1, 64000)] - public int Weight { get; set; } - public WeightedEndpointGroup(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupSelectionMode.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupSelectionMode.cs deleted file mode 100644 index 2a53e4e02f6..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupSelectionMode.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -namespace Microsoft.Extensions.Http.Resilience; - -public enum WeightedGroupSelectionMode -{ - EveryAttempt = 0, - InitialAttempt = 1 -} diff --git a/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupsRoutingOptions.cs b/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupsRoutingOptions.cs deleted file mode 100644 index f545adc895b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupsRoutingOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -public class WeightedGroupsRoutingOptions -{ - public WeightedGroupSelectionMode SelectionMode { get; set; } - [Required] - [Length(1, int.MaxValue)] - [ValidateEnumeratedItems] - public IList Groups { get; set; } - public WeightedGroupsRoutingOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollector.cs b/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollector.cs deleted file mode 100644 index 9004d4c38d8..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollector.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Logging.Testing; - -[DebuggerDisplay("Count = {Count}, LatestRecord = {LatestRecord}")] -[DebuggerTypeProxy(typeof(FakeLogCollectorDebugView))] -public class FakeLogCollector -{ - public FakeLogRecord LatestRecord { get; } - public int Count { get; } - public FakeLogCollector(IOptions options); - public FakeLogCollector(); - public static FakeLogCollector Create(FakeLogCollectorOptions options); - public void Clear(); - public IReadOnlyList GetSnapshot(bool clear = false); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollectorOptions.cs b/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollectorOptions.cs deleted file mode 100644 index acdcc142f89..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollectorOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging.Testing; - -public class FakeLogCollectorOptions -{ - public ISet FilteredCategories { get; set; } - public ISet FilteredLevels { get; set; } - public bool CollectRecordsForDisabledLogLevels { get; set; } - public TimeProvider TimeProvider { get; set; } - public Action? OutputSink { get; set; } - public Func OutputFormatter { get; set; } - public FakeLogCollectorOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogRecord.cs b/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogRecord.cs deleted file mode 100644 index 123030c6038..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogRecord.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging.Testing; - -public class FakeLogRecord -{ - public LogLevel Level { get; } - public EventId Id { get; } - public object? State { get; } - public IReadOnlyList>? StructuredState { get; } - public Exception? Exception { get; } - public string Message { get; } - public IReadOnlyList Scopes { get; } - public string? Category { get; } - public bool LevelEnabled { get; } - public DateTimeOffset Timestamp { get; } - public FakeLogRecord(LogLevel level, EventId id, object? state, Exception? exception, string message, IReadOnlyList scopes, string? category, bool enabled, DateTimeOffset timestamp); - public override string ToString(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.T.cs b/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.T.cs deleted file mode 100644 index 515eee81f39..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.T.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; - -namespace Microsoft.Extensions.Logging.Testing; - -public sealed class FakeLogger : FakeLogger, ILogger, ILogger -{ - public FakeLogger(FakeLogCollector? collector = null); - public FakeLogger(Action outputSink); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.cs b/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.cs deleted file mode 100644 index 63d8257ceee..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Concurrent; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging.Testing; - -public class FakeLogger : ILogger -{ - public FakeLogCollector Collector { get; } - public FakeLogRecord LatestRecord { get; } - public string? Category { get; } - public FakeLogger(FakeLogCollector? collector = null, string? category = null); - public FakeLogger(Action outputSink, string? category = null); - public IDisposable? BeginScope(TState state) where TState : notnull; - public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter); - public void ControlLevel(LogLevel logLevel, bool enabled); - public bool IsEnabled(LogLevel logLevel); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerExtensions.cs b/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerExtensions.cs deleted file mode 100644 index 2f636e35b92..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerExtensions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Logging.Testing; - -public static class FakeLoggerExtensions -{ - public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, IConfigurationSection section); - public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, Action configure); - public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder); - public static IServiceCollection AddFakeLogging(this IServiceCollection services, IConfigurationSection section); - public static IServiceCollection AddFakeLogging(this IServiceCollection services, Action configure); - public static IServiceCollection AddFakeLogging(this IServiceCollection services); - public static FakeLogCollector GetFakeLogCollector(this IServiceProvider services); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerProvider.cs b/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerProvider.cs deleted file mode 100644 index 3e11bb11923..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerProvider.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Concurrent; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging.Testing; - -[ProviderAlias("Fake")] -public class FakeLoggerProvider : ILoggerProvider, IDisposable, ISupportExternalScope -{ - public FakeLogCollector Collector { get; } - public FakeLoggerProvider(FakeLogCollector? collector = null); - [ExcludeFromCodeCoverage] - ~FakeLoggerProvider(); - public void SetScopeProvider(IExternalScopeProvider scopeProvider); - public FakeLogger CreateLogger(string? categoryName); - public void Dispose(); - protected virtual void Dispose(bool disposing); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/ITagCollector.cs b/API/NoDocs/Microsoft.Extensions.Logging/ITagCollector.cs deleted file mode 100644 index 173d0fe7782..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/ITagCollector.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Logging; - -public interface ITagCollector -{ - void Add(string tagName, object? tagValue); - void Add(string tagName, object? tagValue, DataClassification classification); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/LogMethodHelper.cs b/API/NoDocs/Microsoft.Extensions.Logging/LogMethodHelper.cs deleted file mode 100644 index a1bfb7a964d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/LogMethodHelper.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Diagnostics.Enrichment; -using Microsoft.Extensions.ObjectPool; - -namespace Microsoft.Extensions.Logging; - -[EditorBrowsable(EditorBrowsableState.Never)] -public sealed class LogMethodHelper : List>, ITagCollector, IEnrichmentTagCollector, IResettable -{ - public string ParameterName { get; set; } - public static LogDefineOptions SkipEnabledCheckOptions { get; } - public void Add(string tagName, object? tagValue); - public void Add(string tagName, object? tagValue, DataClassification classification); - public bool TryReset(); - public static string Stringify(IEnumerable? enumerable); - public static string Stringify(IEnumerable>? enumerable); - public static LogMethodHelper GetHelper(); - public static void ReturnHelper(LogMethodHelper helper); - public LogMethodHelper(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/LogPropertiesAttribute.cs b/API/NoDocs/Microsoft.Extensions.Logging/LogPropertiesAttribute.cs deleted file mode 100644 index 66337f9cedd..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/LogPropertiesAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging; - -[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class LogPropertiesAttribute : Attribute -{ - public bool SkipNullProperties { get; set; } - public bool OmitReferenceName { get; set; } - public LogPropertiesAttribute(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/LogPropertyIgnoreAttribute.cs b/API/NoDocs/Microsoft.Extensions.Logging/LogPropertyIgnoreAttribute.cs deleted file mode 100644 index cc75362961d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/LogPropertyIgnoreAttribute.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; - -namespace Microsoft.Extensions.Logging; - -[AttributeUsage(AttributeTargets.Property)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class LogPropertyIgnoreAttribute : Attribute -{ - public LogPropertyIgnoreAttribute(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/LoggerEnrichmentOptions.cs b/API/NoDocs/Microsoft.Extensions.Logging/LoggerEnrichmentOptions.cs deleted file mode 100644 index 3fb2caf4b67..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/LoggerEnrichmentOptions.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging; - -public class LoggerEnrichmentOptions -{ - public bool CaptureStackTraces { get; set; } - public bool UseFileInfoForStackTraces { get; set; } - public bool IncludeExceptionMessageInStackTraces { get; set; } - [Range(2048, 32768)] - public int MaxStackTraceLength { get; set; } - public LoggerEnrichmentOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/LoggerMessageHelper.cs b/API/NoDocs/Microsoft.Extensions.Logging/LoggerMessageHelper.cs deleted file mode 100644 index 555f43a019e..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/LoggerMessageHelper.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; - -namespace Microsoft.Extensions.Logging; - -[EditorBrowsable(EditorBrowsableState.Never)] -public static class LoggerMessageHelper -{ - public static LoggerMessageState ThreadLocalState { get; } - public static string Stringify(IEnumerable? enumerable); - public static string Stringify(IEnumerable>? enumerable); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/LoggerMessageState.cs b/API/NoDocs/Microsoft.Extensions.Logging/LoggerMessageState.cs deleted file mode 100644 index edf9841da38..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/LoggerMessageState.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Diagnostics.Enrichment; - -namespace Microsoft.Extensions.Logging; - -[EditorBrowsable(EditorBrowsableState.Never)] -public sealed class LoggerMessageState : IEnrichmentTagCollector, IReadOnlyList>, IEnumerable>, IEnumerable, IReadOnlyCollection>, ITagCollector -{ - [EditorBrowsable(EditorBrowsableState.Never)] - public readonly struct ClassifiedTag - { - public string Name { get; } - public object? Value { get; } - public DataClassification Classification { get; } - public ClassifiedTag(string name, object? value, DataClassification classification); - } - public KeyValuePair[] TagArray { get; } - public KeyValuePair[] RedactedTagArray { get; } - public ClassifiedTag[] ClassifiedTagArray { get; } - public int TagsCount { get; } - public int ClassifiedTagsCount { get; } - public KeyValuePair this[int index] { get; } - public string TagNamePrefix { get; set; } - public int ReserveTagSpace(int count); - public int ReserveClassifiedTagSpace(int count); - public void AddTag(string name, object? value); - public void AddClassifiedTag(string name, object? value, DataClassification classification); - public void Clear(); - public override string ToString(); - public LoggerMessageState(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/LoggingEnrichmentExtensions.cs b/API/NoDocs/Microsoft.Extensions.Logging/LoggingEnrichmentExtensions.cs deleted file mode 100644 index ccaee3a1ebf..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/LoggingEnrichmentExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using Microsoft.Extensions.Configuration; - -namespace Microsoft.Extensions.Logging; - -public static class LoggingEnrichmentExtensions -{ - public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder); - public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, Action configure); - public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, IConfigurationSection section); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/LoggingRedactionExtensions.cs b/API/NoDocs/Microsoft.Extensions.Logging/LoggingRedactionExtensions.cs deleted file mode 100644 index f7c5c84c86f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/LoggingRedactionExtensions.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -namespace Microsoft.Extensions.Logging; - -public static class LoggingRedactionExtensions -{ - public static ILoggingBuilder EnableRedaction(this ILoggingBuilder builder); -} diff --git a/API/NoDocs/Microsoft.Extensions.Logging/TagProviderAttribute.cs b/API/NoDocs/Microsoft.Extensions.Logging/TagProviderAttribute.cs deleted file mode 100644 index 6c811abf20a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Logging/TagProviderAttribute.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging; - -[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class TagProviderAttribute : Attribute -{ - public Type ProviderType { get; } - public string ProviderMethod { get; } - public bool OmitReferenceName { get; set; } - public TagProviderAttribute(Type providerType, string providerMethod); -} diff --git a/API/NoDocs/Microsoft.Extensions.ObjectPool/DependencyInjectionPoolOptions.cs b/API/NoDocs/Microsoft.Extensions.ObjectPool/DependencyInjectionPoolOptions.cs deleted file mode 100644 index 349d9987c94..00000000000 --- a/API/NoDocs/Microsoft.Extensions.ObjectPool/DependencyInjectionPoolOptions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.ObjectPool.DependencyInjection' - -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.ObjectPool; - -[Experimental("EXTEXP0010", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public sealed class DependencyInjectionPoolOptions -{ - public int Capacity { get; set; } - public DependencyInjectionPoolOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.ObjectPool/ObjectPoolServiceCollectionExtensions.cs b/API/NoDocs/Microsoft.Extensions.ObjectPool/ObjectPoolServiceCollectionExtensions.cs deleted file mode 100644 index 7ea0083ea06..00000000000 --- a/API/NoDocs/Microsoft.Extensions.ObjectPool/ObjectPoolServiceCollectionExtensions.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.ObjectPool.DependencyInjection' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.ObjectPool; - -[Experimental("EXTEXP0010", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class ObjectPoolServiceCollectionExtensions -{ - public static IServiceCollection AddPooled<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services, Action? configure = null) where TService : class; - public static IServiceCollection AddPooled(this IServiceCollection services, Action? configure = null) where TService : class where TImplementation : class, TService; - public static IServiceCollection ConfigurePool(this IServiceCollection services, Action configure) where TService : class; - public static IServiceCollection ConfigurePools(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/ContextualOptionsServiceCollectionExtensions.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/ContextualOptionsServiceCollectionExtensions.cs deleted file mode 100644 index d0fab43bc0d..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/ContextualOptionsServiceCollectionExtensions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Options.Contextual; - -public static class ContextualOptionsServiceCollectionExtensions -{ - public static IServiceCollection AddContextualOptions(this IServiceCollection services); - public static IServiceCollection Configure(this IServiceCollection services, Func>> loadOptions) where TOptions : class; - public static IServiceCollection Configure(this IServiceCollection services, string name, Func>> loadOptions) where TOptions : class; - public static IServiceCollection Configure(this IServiceCollection services, Action configureOptions) where TOptions : class; - public static IServiceCollection Configure(this IServiceCollection services, string name, Action configureOptions) where TOptions : class; - public static IServiceCollection PostConfigureAll(this IServiceCollection services, Action configureOptions) where TOptions : class; - public static IServiceCollection PostConfigure(this IServiceCollection services, Action configureOptions) where TOptions : class; - public static IServiceCollection PostConfigure(this IServiceCollection services, string? name, Action configureOptions) where TOptions : class; - public static IServiceCollection ValidateContextualOptions(this IServiceCollection services, Func validate, string failureMessage) where TOptions : class; - public static IServiceCollection ValidateContextualOptions(this IServiceCollection services, string name, Func validate, string failureMessage) where TOptions : class; -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IConfigureContextualOptions.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/IConfigureContextualOptions.cs deleted file mode 100644 index ce74d4af234..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IConfigureContextualOptions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System; - -namespace Microsoft.Extensions.Options.Contextual; - -public interface IConfigureContextualOptions : IDisposable where TOptions : class -{ - void Configure(TOptions options); -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IContextualOptions.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/IContextualOptions.cs deleted file mode 100644 index 62f9cb68db2..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IContextualOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Options.Contextual; - -public interface IContextualOptions where TOptions : class -{ - ValueTask GetAsync(in TContext context, CancellationToken cancellationToken) where TContext : IOptionsContext; -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IContextualOptionsFactory.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/IContextualOptionsFactory.cs deleted file mode 100644 index 8fc7ad7a20f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IContextualOptionsFactory.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Options.Contextual; - -public interface IContextualOptionsFactory where TOptions : class -{ - ValueTask CreateAsync(string name, in TContext context, CancellationToken cancellationToken) where TContext : IOptionsContext; -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/ILoadContextualOptions.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/ILoadContextualOptions.cs deleted file mode 100644 index 54363cf894f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/ILoadContextualOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Options.Contextual; - -public interface ILoadContextualOptions where TOptions : class -{ - ValueTask> LoadAsync(string name, in TContext context, CancellationToken cancellationToken) where TContext : IOptionsContext; -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/INamedContextualOptions.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/INamedContextualOptions.cs deleted file mode 100644 index 77fb36c4a42..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/INamedContextualOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Options.Contextual; - -public interface INamedContextualOptions : IContextualOptions where TOptions : class -{ - ValueTask GetAsync(string name, in TContext context, CancellationToken cancellationToken) where TContext : IOptionsContext; -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IOptionsContext.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/IOptionsContext.cs deleted file mode 100644 index a99561b8b9e..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IOptionsContext.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -public interface IOptionsContext -{ - void PopulateReceiver(T receiver) where T : IOptionsContextReceiver; -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IOptionsContextReceiver.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/IOptionsContextReceiver.cs deleted file mode 100644 index 7013fa008f4..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IOptionsContextReceiver.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -public interface IOptionsContextReceiver -{ - void Receive(string key, T value); -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IPostConfigureContextualOptions.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/IPostConfigureContextualOptions.cs deleted file mode 100644 index 68d937be025..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IPostConfigureContextualOptions.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -public interface IPostConfigureContextualOptions where TOptions : class -{ - void PostConfigure(string name, in TContext context, TOptions options) where TContext : IOptionsContext; -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IValidateContextualOptions.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/IValidateContextualOptions.cs deleted file mode 100644 index df519e71fb5..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/IValidateContextualOptions.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -public interface IValidateContextualOptions where TOptions : class -{ - ValidateOptionsResult Validate(string? name, TOptions options); -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/NullConfigureContextualOptions.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/NullConfigureContextualOptions.cs deleted file mode 100644 index 59428468981..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/NullConfigureContextualOptions.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -public static class NullConfigureContextualOptions -{ - public static IConfigureContextualOptions GetInstance() where TOptions : class; -} diff --git a/API/NoDocs/Microsoft.Extensions.Options.Contextual/OptionsContextAttribute.cs b/API/NoDocs/Microsoft.Extensions.Options.Contextual/OptionsContextAttribute.cs deleted file mode 100644 index e0d6e01066a..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Options.Contextual/OptionsContextAttribute.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System; -using System.Diagnostics; - -namespace Microsoft.Extensions.Options.Contextual; - -[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class OptionsContextAttribute : Attribute -{ - public OptionsContextAttribute(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsBase.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsBase.cs deleted file mode 100644 index 2da882671b0..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsBase.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public class ChaosPolicyOptionsBase -{ - public bool Enabled { get; set; } - [Range(0, 1)] - public double FaultInjectionRate { get; set; } - protected ChaosPolicyOptionsBase(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsGroup.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsGroup.cs deleted file mode 100644 index d78d339ffb4..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsGroup.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public class ChaosPolicyOptionsGroup -{ - [ValidateObjectMembers] - public LatencyPolicyOptions? LatencyPolicyOptions { get; set; } - [ValidateObjectMembers] - public HttpResponseInjectionPolicyOptions? HttpResponseInjectionPolicyOptions { get; set; } - [ValidateObjectMembers] - public ExceptionPolicyOptions? ExceptionPolicyOptions { get; set; } - [ValidateObjectMembers] - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public CustomResultPolicyOptions? CustomResultPolicyOptions { get; set; } - public ChaosPolicyOptionsGroup(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/CustomResultPolicyOptions.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/CustomResultPolicyOptions.cs deleted file mode 100644 index 8a5596e8b6f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/CustomResultPolicyOptions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public class CustomResultPolicyOptions : ChaosPolicyOptionsBase -{ - [Required] - public string CustomResultKey { get; set; } - public CustomResultPolicyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ExceptionPolicyOptions.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ExceptionPolicyOptions.cs deleted file mode 100644 index 33a4ad94cd7..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/ExceptionPolicyOptions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public class ExceptionPolicyOptions : ChaosPolicyOptionsBase -{ - public string ExceptionKey { get; set; } - public ExceptionPolicyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionExtensions.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionExtensions.cs deleted file mode 100644 index 2f708668c23..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionExtensions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Polly; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public static class FaultInjectionExtensions -{ - public static IServiceCollection AddFaultInjection(this IServiceCollection services); - public static IServiceCollection AddFaultInjection(this IServiceCollection services, IConfiguration section); - public static IServiceCollection AddFaultInjection(this IServiceCollection services, Action configure); - public static Context WithFaultInjection(this Context context, string groupName); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static Context WithFaultInjection(this Context context, FaultPolicyWeightAssignmentsOptions weightAssignments); - public static string? GetFaultInjectionGroupName(this Context context); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptions.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptions.cs deleted file mode 100644 index 608623bcfb9..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public class FaultInjectionOptions -{ - public IDictionary ChaosPolicyOptionsGroups { get; set; } - public FaultInjectionOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptionsBuilder.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptionsBuilder.cs deleted file mode 100644 index 34f2e24c1a2..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptionsBuilder.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public class FaultInjectionOptionsBuilder -{ - public FaultInjectionOptionsBuilder(IServiceCollection services); - public FaultInjectionOptionsBuilder Configure(); - public FaultInjectionOptionsBuilder Configure(IConfiguration section); - public FaultInjectionOptionsBuilder Configure(Action configureOptions); - public FaultInjectionOptionsBuilder AddException(string key, Exception exception); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public FaultInjectionOptionsBuilder AddCustomResult(string key, object customResult); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultPolicyWeightAssignmentsOptions.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultPolicyWeightAssignmentsOptions.cs deleted file mode 100644 index 0670a5b5ba0..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultPolicyWeightAssignmentsOptions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public class FaultPolicyWeightAssignmentsOptions -{ - public IDictionary WeightAssignments { get; set; } - public FaultPolicyWeightAssignmentsOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/HttpResponseInjectionPolicyOptions.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/HttpResponseInjectionPolicyOptions.cs deleted file mode 100644 index 4b11ca9ce18..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/HttpResponseInjectionPolicyOptions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Net; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public class HttpResponseInjectionPolicyOptions : ChaosPolicyOptionsBase -{ - [EnumDataType(typeof(HttpStatusCode))] - public HttpStatusCode StatusCode { get; set; } - public string? HttpContentKey { get; set; } - public HttpResponseInjectionPolicyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/IChaosPolicyFactory.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/IChaosPolicyFactory.cs deleted file mode 100644 index df4686b8093..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/IChaosPolicyFactory.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Diagnostics.CodeAnalysis; -using Polly.Contrib.Simmy.Latency; -using Polly.Contrib.Simmy.Outcomes; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public interface IChaosPolicyFactory -{ - AsyncInjectLatencyPolicy CreateLatencyPolicy(); - AsyncInjectOutcomePolicy CreateExceptionPolicy(); - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - AsyncInjectOutcomePolicy CreateCustomResultPolicy(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/IFaultInjectionOptionsProvider.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/IFaultInjectionOptionsProvider.cs deleted file mode 100644 index 7a607201394..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/IFaultInjectionOptionsProvider.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public interface IFaultInjectionOptionsProvider -{ - bool TryGetChaosPolicyOptionsGroup(string optionsGroupName, [NotNullWhen(true)] out ChaosPolicyOptionsGroup? optionsGroup); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/InjectedFaultException.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/InjectedFaultException.cs deleted file mode 100644 index b384138215c..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/InjectedFaultException.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public class InjectedFaultException : Exception -{ - public InjectedFaultException(); - public InjectedFaultException(string message); - public InjectedFaultException(string message, Exception innerException); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/LatencyPolicyOptions.cs b/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/LatencyPolicyOptions.cs deleted file mode 100644 index bce68baabe8..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience.FaultInjection/LatencyPolicyOptions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; -using System.Runtime.CompilerServices; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -public class LatencyPolicyOptions : ChaosPolicyOptionsBase -{ - [TimeSpan("00:00:00", "00:10:00")] - public TimeSpan Latency { get; set; } - public LatencyPolicyOptions(); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience/FailureResultContext.cs b/API/NoDocs/Microsoft.Extensions.Resilience/FailureResultContext.cs deleted file mode 100644 index 946f12feb9f..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience/FailureResultContext.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience; - -public readonly struct FailureResultContext -{ - public string FailureSource { get; } - public string FailureReason { get; } - public string AdditionalInformation { get; } - public static FailureResultContext Create(string failureSource = "unknown", string failureReason = "unknown", string additionalInformation = "unknown"); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience/ResilienceContextExtensions.cs b/API/NoDocs/Microsoft.Extensions.Resilience/ResilienceContextExtensions.cs deleted file mode 100644 index 4c280b493b3..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience/ResilienceContextExtensions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Http.Diagnostics; -using Polly; - -namespace Microsoft.Extensions.Resilience; - -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class ResilienceContextExtensions -{ - public static void SetRequestMetadata(this ResilienceContext context, RequestMetadata requestMetadata); - public static RequestMetadata? GetRequestMetadata(this ResilienceContext context); -} diff --git a/API/NoDocs/Microsoft.Extensions.Resilience/ResilienceServiceCollectionExtensions.cs b/API/NoDocs/Microsoft.Extensions.Resilience/ResilienceServiceCollectionExtensions.cs deleted file mode 100644 index a65705ac96b..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Resilience/ResilienceServiceCollectionExtensions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Resilience; - -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class ResilienceServiceCollectionExtensions -{ - public static IServiceCollection AddResilienceEnrichment(this IServiceCollection services); - public static IServiceCollection ConfigureFailureResultContext(this IServiceCollection services, Func configure); -} diff --git a/API/NoDocs/Microsoft.Extensions.Time.Testing/FakeTimeProvider.cs b/API/NoDocs/Microsoft.Extensions.Time.Testing/FakeTimeProvider.cs deleted file mode 100644 index 7c11c3d9ee6..00000000000 --- a/API/NoDocs/Microsoft.Extensions.Time.Testing/FakeTimeProvider.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Assembly 'Microsoft.Extensions.TimeProvider.Testing' - -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Microsoft.Extensions.Time.Testing; - -public class FakeTimeProvider : TimeProvider -{ - public DateTimeOffset Start { get; } - public TimeSpan AutoAdvanceAmount { get; set; } - public override TimeZoneInfo LocalTimeZone { get; } - public override long TimestampFrequency { get; } - public FakeTimeProvider(); - public FakeTimeProvider(DateTimeOffset startDateTime); - public override DateTimeOffset GetUtcNow(); - public void SetUtcNow(DateTimeOffset value); - public void Advance(TimeSpan delta); - public override long GetTimestamp(); - public void SetLocalTimeZone(TimeZoneInfo localTimeZone); - public override string ToString(); - public override ITimer CreateTimer(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.AsyncState/AsyncStateHttpContextExtensions.cs b/API/WithDocs/Microsoft.AspNetCore.AsyncState/AsyncStateHttpContextExtensions.cs deleted file mode 100644 index d8a16c89291..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.AsyncState/AsyncStateHttpContextExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.AsyncState' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.AsyncState; - -/// -/// Extension methods to add the async state feature with the HttpContext lifetime to a dependency injection container. -/// -public static class AsyncStateHttpContextExtensions -{ - /// - /// Adds default implementations for , , and services, - /// scoped to the lifetime of instances. - /// - /// The to add the service to. - /// The value of . - /// is . - public static IServiceCollection AddAsyncStateHttpContext(this IServiceCollection services); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointConstants.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointConstants.cs deleted file mode 100644 index cb8698b7915..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointConstants.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -namespace Microsoft.AspNetCore.Diagnostics.Latency; - -/// -/// Project constants. -/// -public static class RequestCheckpointConstants -{ - /// - /// The time elapsed before the response headers have been sent to the client. - /// - public const string ElapsedTillHeaders = "elthdr"; - - /// - /// The time elapsed before the response has finished being sent to the client. - /// - public const string ElapsedTillFinished = "eltltf"; - - /// - /// The time elapsed before hitting the middleware. - /// - public const string ElapsedTillPipelineExitMiddleware = "eltexm"; - - /// - /// The time elapsed before the response back to middleware pipeline. - /// - public const string ElapsedResponseProcessed = "eltrspproc"; - - /// - /// The time elapsed before hitting the first middleware. - /// - public const string ElapsedTillEntryMiddleware = "eltenm"; -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointExtensions.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointExtensions.cs deleted file mode 100644 index 41f510be5b4..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestCheckpointExtensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.Diagnostics.Latency; - -/// -/// Extensions used to register Request Checkpoint feature. -/// -public static class RequestCheckpointExtensions -{ - /// - /// Adds all Request Checkpoint services. - /// - /// The to add the service to. - /// A reference to this instance after the operation has completed. - public static IServiceCollection AddRequestCheckpoint(this IServiceCollection services); - - /// - /// Registers Request Checkpoint related middlewares into the pipeline. - /// - /// The . - /// The instance. - public static IApplicationBuilder UseRequestCheckpoint(this IApplicationBuilder builder); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryExtensions.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryExtensions.cs deleted file mode 100644 index 03481ac7e26..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryExtensions.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.Diagnostics.Latency; - -/// -/// Extensions for registering the request latency telemetry middleware. -/// -public static class RequestLatencyTelemetryExtensions -{ - /// - /// Adds request latency telemetry middleware to the specified . - /// - /// The to add to. - /// Provided service collection with request latency telemetry middleware added. - /// is . - public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services); - - /// - /// Adds request latency telemetry middleware to the specified . - /// - /// The to add to. - /// Configuration of . - /// Provided service collection with request latency telemetry middleware added. - /// Either or is . - public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services, Action configure); - - /// - /// Adds request latency telemetry middleware to the specified . - /// - /// The to add to. - /// Configuration of . - /// Provided service collection with request latency telemetry middleware added. - /// Either or is . - public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services, IConfigurationSection section); - - /// - /// Adds the request latency telemetry middleware to request execution pipeline. - /// - /// The . - /// The so that additional calls can be chained. - /// is . - public static IApplicationBuilder UseRequestLatencyTelemetry(this IApplicationBuilder builder); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryOptions.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryOptions.cs deleted file mode 100644 index 03bd3daffb2..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Latency/RequestLatencyTelemetryOptions.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System; -using System.Runtime.CompilerServices; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.AspNetCore.Diagnostics.Latency; - -/// -/// Options to configure the request latency middleware. -/// -public class RequestLatencyTelemetryOptions -{ - /// - /// Gets or sets the amount of time to wait for export of latency data. - /// - /// - /// The default value is 5 seconds. - /// - [TimeSpan(1000)] - public TimeSpan LatencyDataExportTimeout { get; set; } - - public RequestLatencyTelemetryOptions(); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingServiceExtensions.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingServiceExtensions.cs deleted file mode 100644 index af4b789984a..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingServiceExtensions.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -/// -/// Extension methods to register the HTTP logging feature within the service. -/// -public static class HttpLoggingServiceExtensions -{ - /// - /// Adds components for incoming HTTP requests logging into . - /// - /// The to add the service to. - /// The so that additional calls can be chained. - /// is . - public static IServiceCollection AddHttpLogging(this IServiceCollection services); - - /// - /// Adds components for incoming HTTP requests logging into . - /// - /// The to add the service to. - /// - /// An to configure the . - /// - /// The so that additional calls can be chained. - /// - /// Either or is . - /// - public static IServiceCollection AddHttpLogging(this IServiceCollection services, Action configure); - - /// - /// Adds components for incoming HTTP requests logging into . - /// - /// The to add the service to. - /// The configuration section to bind to. - /// The so that additional calls can be chained. - /// - /// Either or is . - /// - public static IServiceCollection AddHttpLogging(this IServiceCollection services, IConfigurationSection section); - - /// - /// Adds an enricher instance of to the to enrich incoming HTTP requests logs. - /// - /// Type of enricher. - /// The to add the instance of to. - /// The so that additional calls can be chained. - /// is . - public static IServiceCollection AddHttpLogEnricher(this IServiceCollection services) where T : class, IHttpLogEnricher; - - /// - /// Registers incoming HTTP request logging middleware into . - /// - /// - /// Request logging middleware should be placed after call. - /// - /// An application's request pipeline builder. - /// The so that additional calls can be chained. - /// is . - public static IApplicationBuilder UseHttpLoggingMiddleware(this IApplicationBuilder builder); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingTagNames.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingTagNames.cs deleted file mode 100644 index 2b202b1cffe..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/HttpLoggingTagNames.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -/// -/// Constants used for incoming HTTP request logging tags. -/// -public static class HttpLoggingTagNames -{ - /// - /// HTTP Request duration in milliseconds. - /// - public const string Duration = "duration"; - - /// - /// HTTP Host. - /// - public const string Host = "httpHost"; - - /// - /// HTTP Method. - /// - public const string Method = "httpMethod"; - - /// - /// HTTP Path. - /// - public const string Path = "httpPath"; - - /// - /// HTTP Request Headers prefix. - /// - public const string RequestHeaderPrefix = "httpRequestHeader_"; - - /// - /// HTTP Response Headers prefix. - /// - public const string ResponseHeaderPrefix = "httpResponseHeader_"; - - /// - /// HTTP Request Body. - /// - public const string RequestBody = "httpRequestBody"; - - /// - /// HTTP Response Body. - /// - public const string ResponseBody = "httpResponseBody"; - - /// - /// HTTP Status Code. - /// - public const string StatusCode = "httpStatusCode"; - - /// - /// Gets a list of all dimension names. - /// - /// A read-only of all dimension names. - public static IReadOnlyList DimensionNames { get; } -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/IHttpLogEnricher.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/IHttpLogEnricher.cs deleted file mode 100644 index 1a1efec4854..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/IHttpLogEnricher.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Diagnostics.Enrichment; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -/// -/// Interface for implementing log enrichers for incoming HTTP requests. -/// -public interface IHttpLogEnricher -{ - /// - /// Enrich logs. - /// - /// Tag collector to add tags to. - /// object associated with the incoming HTTP request. - /// object associated with the response to an incoming HTTP request. - void Enrich(IEnrichmentTagCollector collector, HttpRequest request, HttpResponse response); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/IncomingPathLoggingMode.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/IncomingPathLoggingMode.cs deleted file mode 100644 index 35087ceffdc..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/IncomingPathLoggingMode.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -/// -/// Strategy to decide how request path is logged. -/// -public enum IncomingPathLoggingMode -{ - /// - /// Request path is logged formatted, its params are not logged. - /// - Formatted = 0, - /// - /// Request path is logged in a structured way (as route), its params are logged. - /// - Structured = 1 -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/LoggingOptions.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/LoggingOptions.cs deleted file mode 100644 index 87f1a74cd6c..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/LoggingOptions.cs +++ /dev/null @@ -1,198 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry.Middleware' - -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Http.Diagnostics; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -/// -/// Top-level model for formatting incoming HTTP requests and their corresponding responses. -/// -public class LoggingOptions -{ - /// - /// Gets or sets a value indicating whether the request is logged additionally before any further processing. - /// - /// - /// The default value is . - /// - /// - /// When enabled, two entries will be logged for each incoming request. Note, that the first log record won't be enriched. - /// When disabled, only one entry will be logged for each incoming request (with corresponding response's data). - /// - public bool LogRequestStart { get; set; } - - /// - /// Gets or sets a value indicating whether HTTP request and response body will be logged. - /// - /// - /// The default value is . - /// - /// - /// Avoid enabling this option in a production environment as it might lead to leaking privacy information. - /// - public bool LogBody { get; set; } - - /// - /// Gets or sets a strategy how request path should be logged. - /// - /// - /// The default value is . - /// - /// - /// Make sure you add redactors to ensure that sensitive information doesn't find its way into your log records. - /// This option only applies when the - /// option is not set to . - /// - public IncomingPathLoggingMode RequestPathLoggingMode { get; set; } - - /// - /// Gets or sets a value indicating how request path parameter should be redacted. - /// - /// - /// The default value is . - /// - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public HttpRouteParameterRedactionMode RequestPathParameterRedactionMode { get; set; } - - /// - /// Gets or sets a maximum amount of time to wait for the request body to be read. - /// - /// - /// The default value is 1 second. - /// - /// - /// The value should be in the range of 1 millisecond to 1 minute. - /// - [TimeSpan(1, 60000)] - public TimeSpan RequestBodyReadTimeout { get; set; } - - /// - /// Gets or sets the maximum number of bytes of the request/response body to be read. - /// - /// - /// The default is ≈ 32K. - /// - /// - /// The number should ideally be below 85000 bytes to not be allocated on the large object heap. - /// - [Range(1, 1572864)] - public int BodySizeLimit { get; set; } - - /// - /// Gets or sets a map between HTTP path parameters and their data classification. - /// - /// - /// The default value is an empty dictionary. - /// - /// - /// If a parameter within a controller's action is not annotated with a data classification attribute and - /// it's not found in this map, it will be redacted as if it was . - /// If you don't want a parameter to be redacted, mark it as . - /// - [Required] - public IDictionary RouteParameterDataClasses { get; set; } - - /// - /// Gets or sets a map between request headers to be logged and their data classification. - /// - /// - /// The default value is an empty dictionary, which means that no request header is logged by default. - /// - [Required] - public IDictionary RequestHeadersDataClasses { get; set; } - - /// - /// Gets or sets the set of request body content types which are considered text and thus possible to log. - /// - /// - /// The default value is an empty , which means that the request's body isn't logged. - /// - /// - /// Don't enable body logging in a production environment, as it might impact - /// performance and leak sensitive data. - /// If you need to log body in production, go through compliance and security. - /// - /// - /// A typical set of known text content-types like json, xml or text would be: - /// - /// RequestBodyContentTypesToLog = new HashSet<string> - /// { - /// "application/*+json", - /// "application/*+xml", - /// "application/json", - /// "application/xml", - /// "text/*" - /// }; - /// - /// - [Required] - public ISet RequestBodyContentTypes { get; set; } - - /// - /// Gets or sets a map between response headers to be logged and their data classification. - /// - /// - /// The default value is an empty dictionary, which means that no response header is logged by default. - /// - [Required] - public IDictionary ResponseHeadersDataClasses { get; set; } - - /// - /// Gets or sets the set of response body content types which are considered text and thus possible to log. - /// - /// - /// The default value is an empty , which means that the response's body isn't logged. - /// - /// - /// Don't enable body logging in a production environment, as it might impact performance and leak sensitive data. - /// If you need to log body in production, go through compliance and security. - /// - /// - /// A typical set of known text content-types like json, xml or text would be: - /// - /// ResponseBodyContentTypesToLog = new HashSet<string> - /// { - /// "application/*+json", - /// "application/*+xml", - /// "application/json", - /// "application/xml", - /// "text/*" - /// }; - /// - /// - [Required] - public ISet ResponseBodyContentTypes { get; set; } - - /// - /// Gets or sets the set of HTTP paths that should be excluded from logging. - /// - /// - /// The default value is an empty . - /// - /// - /// Any path added to the set will not be logged. - /// Paths are case insensitive. - /// - /// - /// A typical set of HTTP paths would be: - /// - /// ExcludePathStartsWith = new HashSet<string> - /// { - /// "/probe/live", - /// "/probe/ready" - /// }; - /// - /// - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - [Required] - public ISet ExcludePathStartsWith { get; set; } - - public LoggingOptions(); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/RequestHeadersEnricherExtensions.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/RequestHeadersEnricherExtensions.cs deleted file mode 100644 index 76d36645e77..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics.Logging/RequestHeadersEnricherExtensions.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.Diagnostics.Logging; - -/// -/// Extension methods for setting up Request Headers Log Enricher in an . -/// -public static class RequestHeadersEnricherExtensions -{ - /// - /// Adds an instance of Request Headers Log Enricher to the . - /// - /// The to add the Request Headers Log Enricher to. - /// The so that additional calls can be chained. - /// is . - public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services); - - /// - /// Adds an instance of Request Headers Log Enricher to the . - /// - /// The to add the Request Headers Log Enricher to. - /// The configuration delegate. - /// The so that additional calls can be chained. - /// is . - public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services, Action configure); - - /// - /// Adds an instance of Request Headers Log Enricher to the . - /// - /// The to add the Request Headers Log Enricher to. - /// The to use for configuring - /// in the Request Headers Log Enricher. - /// The so that additional calls can be chained. - /// is . - public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Diagnostics/RequestHeadersLogEnricherOptions.cs b/API/WithDocs/Microsoft.AspNetCore.Diagnostics/RequestHeadersLogEnricherOptions.cs deleted file mode 100644 index 06addeec3fe..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Diagnostics/RequestHeadersLogEnricherOptions.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Telemetry' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.AspNetCore.Diagnostics; - -/// -/// Options for the Request Headers enricher. -/// -public class RequestHeadersLogEnricherOptions -{ - /// - /// Gets or sets a dictionary of header names that logs should be enriched with and their data classification. - /// - /// - /// Default value is an empty dictionary. - /// - [Required] - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public IDictionary HeadersDataClasses { get; set; } - - public RequestHeadersLogEnricherOptions(); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/CommonHeaders.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/CommonHeaders.cs deleted file mode 100644 index 6ae850ecfb8..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/CommonHeaders.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.Collections.Generic; -using System.Net; -using Microsoft.Net.Http.Headers; - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Common header setups. -/// -public static class CommonHeaders -{ - /// - /// Gets Host header setup. - /// - public static HeaderSetup Host { get; } - - /// - /// Gets Accept header setup. - /// - public static HeaderSetup> Accept { get; } - - /// - /// Gets AcceptEncoding header setup. - /// - public static HeaderSetup> AcceptEncoding { get; } - - /// - /// Gets AcceptLanguage header setup. - /// - public static HeaderSetup> AcceptLanguage { get; } - - /// - /// Gets CacheControl header setup. - /// - public static HeaderSetup CacheControl { get; } - - /// - /// Gets ContentDisposition header setup. - /// - public static HeaderSetup ContentDisposition { get; } - - /// - /// Gets ContentType header setup. - /// - public static HeaderSetup ContentType { get; } - - /// - /// Gets Cookie header setup. - /// - public static HeaderSetup> Cookie { get; } - - /// - /// Gets Date header setup. - /// - public static HeaderSetup Date { get; } - - /// - /// Gets IfMatch header setup. - /// - public static HeaderSetup> IfMatch { get; } - - /// - /// Gets IfModifiedSince header setup. - /// - public static HeaderSetup> IfModifiedSince { get; } - - /// - /// Gets IfNoneMatch header setup. - /// - public static HeaderSetup> IfNoneMatch { get; } - - /// - /// Gets IfRange header setup. - /// - public static HeaderSetup IfRange { get; } - - /// - /// Gets IfUnmodifiedSince header setup. - /// - public static HeaderSetup IfUnmodifiedSince { get; } - - /// - /// Gets Range header setup. - /// - public static HeaderSetup Range { get; } - - /// - /// Gets Referrer header setup. - /// - public static HeaderSetup Referer { get; } - - /// - /// Gets XForwardedFor header setup. - /// - public static HeaderSetup> XForwardedFor { get; } -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderKey.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderKey.cs deleted file mode 100644 index afd8de5f48f..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderKey.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Caching.Memory; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Used to indicate which header to parse. -/// -/// The type of the header value. -public sealed class HeaderKey where T : notnull -{ - /// - /// Gets the name of the header. - /// - public string Name { get; } - - /// - /// Returns a string representing this instance. - /// - /// - /// The name of this instance. - /// - public override string ToString(); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParser.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParser.cs deleted file mode 100644 index f0e012101b8..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParser.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Parses raw header value to a header type. -/// -/// The resulting strong type representing the header's value. -public abstract class HeaderParser where T : notnull -{ - /// - /// Parses a raw header value to a strong type. - /// - /// The original value. - /// A resulting value. - /// An error if parsing failed. - /// Parsing result. - public abstract bool TryParse(StringValues values, [NotNullWhen(true)] out T? result, [NotNullWhen(false)] out string? error); - - protected HeaderParser(); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingExtensions.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingExtensions.cs deleted file mode 100644 index ccc3780366d..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingExtensions.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Extensions exposing HeaderParsing feature. -/// -public static class HeaderParsingExtensions -{ - /// - /// Adds header parsing feature. - /// - /// The to add the services to. - /// The same instance for chaining. - public static IServiceCollection AddHeaderParsing(this IServiceCollection services); - - /// - /// Adds header parsing feature. - /// - /// The to add the services to. - /// A delegate to setup parsing for the header. - /// The same instance for chaining. - public static IServiceCollection AddHeaderParsing(this IServiceCollection services, Action configuration); - - /// - /// Adds header parsing feature. - /// - /// The to add the services to. - /// A configuration section. - /// The same instance for chaining. - public static IServiceCollection AddHeaderParsing(this IServiceCollection services, IConfigurationSection section); - - /// - /// Gets the header parsing feature to access parsed header values. - /// - /// The instance. - /// The to access parsed header values. - public static HeaderParsingFeature GetHeaderParsing(this HttpRequest request); - - /// - /// Tries to get a header value if it exists and can be parsed. - /// - /// The type of the header value. - /// The instance. - /// The header to parse. - /// A resulting value. - /// if the header value was successfully fetched parsed. - public static bool TryGetHeaderValue(this HttpRequest request, HeaderKey header, [NotNullWhen(true)] out T? value) where T : notnull; - - /// - /// Tries to get a header value if it exists and can be parsed. - /// - /// The type of the header value. - /// The instance. - /// The header to parse. - /// A resulting value. - /// Details on the parsing operation. - /// if the header value was successfully fetched parsed. - public static bool TryGetHeaderValue(this HttpRequest request, HeaderKey header, [NotNullWhen(true)] out T? value, out ParsingResult result) where T : notnull; -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingFeature.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingFeature.cs deleted file mode 100644 index f8a71f69fee..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingFeature.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.CodeDom.Compiler; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Diagnostics.Metrics; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.ObjectPool; - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Keeps header parsing state and provides parsing features. -/// -public sealed class HeaderParsingFeature -{ - /// - /// Tries to get a header value if it exists and can be parsed. - /// - /// The type of the header value. - /// The header to parse. - /// A resulting value. - /// if the header value was successfully fetched parsed. - public bool TryGetHeaderValue(HeaderKey header, [NotNullWhen(true)] out T? value) where T : notnull; - - /// - /// Tries to get a header value if it exists and can be parsed. - /// - /// The type of the header value. - /// The header to parse. - /// A resulting value. - /// Details on the parsing operation. - /// if the header value was successfully fetched parsed. - public bool TryGetHeaderValue(HeaderKey header, [NotNullWhen(true)] out T? value, out ParsingResult result) where T : notnull; -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingOptions.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingOptions.cs deleted file mode 100644 index e276c237bf3..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderParsingOptions.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Options for the header parsing infrastructure. -/// -public class HeaderParsingOptions -{ - /// - /// Gets or sets default header values for when the given headers aren't present. - /// - /// - /// The keys represent the header name. - /// - public IDictionary DefaultValues { get; set; } - - /// - /// Gets or sets the default number of cached values per cacheable header. - /// - /// - /// Default value is 128 values. - /// The number of cached values can be overridden for specific headers using the property. - /// - [Range(0, int.MaxValue)] - public int DefaultMaxCachedValuesPerHeader { get; set; } - - /// - /// Gets or sets the maximum number of cached values for specific headers. - /// - /// - /// The keys represent the header name. - /// - public IDictionary MaxCachedValuesPerHeader { get; set; } - - public HeaderParsingOptions(); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderSetup.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderSetup.cs deleted file mode 100644 index c520f29c58d..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HeaderSetup.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Stores all setup information for a header. -/// -/// The type of the header value. -public class HeaderSetup where THeader : notnull -{ - /// - /// Gets the name of the header. - /// - public string HeaderName { get; } - - /// - /// Gets the type of the parser to parse header values. - /// - /// Not when is and vice versa. - public Type? ParserType { get; } - - /// - /// Gets the parser to parse header values. - /// - /// Not when is and vice versa. - public HeaderParser? ParserInstance { get; } - - /// - /// Gets a value indicating whether this header's parsed values can and/or should be cached. - /// - public bool Cacheable { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The name of the header. - /// The type of the parser to parse header values. - /// Indicates whether the header's values can be cached. - public HeaderSetup(string headerName, Type parserType, bool cacheable = false); - - /// - /// Initializes a new instance of the class. - /// - /// The name of the header. - /// The parser to parse header values. - /// Indicates whether the header's values can be cached. - public HeaderSetup(string headerName, HeaderParser instance, bool cacheable = false); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HostHeaderValue.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HostHeaderValue.cs deleted file mode 100644 index 2910736bc3d..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/HostHeaderValue.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -using System; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Holds parsed data for the HTTP host header. -/// -public readonly struct HostHeaderValue : IEquatable -{ - /// - /// Gets the host address. - /// - /// - /// The address of the server. - /// - public string Host { get; } - - /// - /// Gets the port value. - /// - /// - /// The optional TCP port number on which the server is listening. - /// - public int? Port { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// The address of the host. - /// The optional TCP port number on which the host is listening. - public HostHeaderValue(string host, int? port); - - /// - /// Equality operator. - /// - /// First value. - /// Second value. - /// if the operands are equal, otherwise. - public static bool operator ==(HostHeaderValue left, HostHeaderValue right); - - /// - /// Inequality operator. - /// - /// First value. - /// Second value. - /// if the operands are unequal, otherwise. - public static bool operator !=(HostHeaderValue left, HostHeaderValue right); - - /// - /// Parses a host header value. - /// - /// The value to parse. - /// The parsed result. - /// if the value was parsed successfully, otherwise. - public static bool TryParse(string value, [NotNullWhen(true)] out HostHeaderValue result); - - /// - /// Determines whether this host header value and a specified host header value are identical. - /// - /// The other host header value. - /// if the two values are identical; otherwise, . - public bool Equals(HostHeaderValue other); - - /// - /// Determines whether the specified object is equal to the current host header value. - /// - /// The object to compare. - /// if the specified object is identical to the current host header value; otherwise, . - public override bool Equals(object? obj); - - /// - /// Gets a hash code for this object. - /// - /// A hash code for the current object. - public override int GetHashCode(); - - /// - /// Gets a string representation of this object. - /// - /// A string representing this object. - public override string ToString(); -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/IHeaderRegistry.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/IHeaderRegistry.cs deleted file mode 100644 index 3c2a25d76ca..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/IHeaderRegistry.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Provides typed header values. -/// -public interface IHeaderRegistry -{ - /// - /// Registers a header parser and returns an object to let you read the header's value at runtime. - /// - /// The type of the header. - /// The header setup. - /// If the header already exists, the current instance is returned. - /// An instance. - HeaderKey Register(HeaderSetup setup) where T : notnull; -} diff --git a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/ParsingResult.cs b/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/ParsingResult.cs deleted file mode 100644 index 061d98cfc1d..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.HeaderParsing/ParsingResult.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.HeaderParsing' - -namespace Microsoft.AspNetCore.HeaderParsing; - -/// -/// Result of trying to parse a header. -/// -public enum ParsingResult -{ - /// - /// Indicates the header was successfully parsed. - /// - Success = 0, - /// - /// Indicates the header's value was malformed and couldn't be parsed. - /// - Error = 1, - /// - /// Indicates the header was not present. - /// - NotFound = 2 -} diff --git a/API/WithDocs/Microsoft.AspNetCore.Testing/ServiceFakesExtensions.cs b/API/WithDocs/Microsoft.AspNetCore.Testing/ServiceFakesExtensions.cs deleted file mode 100644 index 0441261a85c..00000000000 --- a/API/WithDocs/Microsoft.AspNetCore.Testing/ServiceFakesExtensions.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Assembly 'Microsoft.AspNetCore.Testing' - -using System; -using System.Collections.Generic; -using System.Net.Http; -using System.Security.Cryptography.X509Certificates; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Hosting.Server; -using Microsoft.Extensions.Hosting; - -namespace Microsoft.AspNetCore.Testing; - -/// -/// Extension methods supporting Kestrel server unit testing scenarios. -/// -public static class ServiceFakesExtensions -{ - /// - /// Adds an empty Startup class to satisfy ASP.NET check. - /// - /// An instance. - /// The same instance to allow method chaining. - public static IWebHostBuilder UseTestStartup(this IWebHostBuilder builder); - - /// - /// Adds Kestrel server instance listening on the given HTTP port. - /// - /// An instance. - /// The same instance to allow method chaining. - /// When a concrete port is set by caller, it's not further validated if the port is really free. - public static IWebHostBuilder ListenHttpOnAnyPort(this IWebHostBuilder builder); - - /// - /// Adds Kestrel server instance listening on a random HTTPS port. - /// - /// An instance. - /// An SSL certificate for the port. If null, a self-signed certificate is created and used. - /// The same instance to allow method chaining. - /// When a concrete port is set by caller, it's not further validated if the port is really free. - public static IWebHostBuilder ListenHttpsOnAnyPort(this IWebHostBuilder builder, X509Certificate2? sslCertificate = null); - - /// - /// Creates an to call the hosted application. - /// - /// An instance. - /// The inner . - /// Selects what address should be used. If null, takes the first available address. - /// An configured to call the hosted application. - public static HttpClient CreateClient(this IHost host, HttpMessageHandler? handler = null, Func? addressFilter = null); - - /// - /// Gets the first available URI the server listens to that passes the filter. - /// - /// An instance. - /// A instance. - public static IEnumerable GetListenUris(this IHost host); -} diff --git a/API/WithDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadata.cs b/API/WithDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadata.cs deleted file mode 100644 index 594adec3c73..00000000000 --- a/API/WithDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadata.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Assembly 'Microsoft.Extensions.AmbientMetadata.Application' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.AmbientMetadata; - -/// -/// Application-level metadata model. -/// -public class ApplicationMetadata -{ - /// - /// Gets or sets the deployment ring from where the application is running. - /// - public string? DeploymentRing { get; set; } - - /// - /// Gets or sets the application's build version. - /// - public string? BuildVersion { get; set; } - - /// - /// Gets or sets the application's name. - /// - [Required] - public string ApplicationName { get; set; } - - /// - /// Gets or sets the application's environment name, such as Development, Staging, or Production. - /// - [Required] - public string EnvironmentName { get; set; } - - public ApplicationMetadata(); -} diff --git a/API/WithDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadataExtensions.cs b/API/WithDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadataExtensions.cs deleted file mode 100644 index 0fb2d9dfd23..00000000000 --- a/API/WithDocs/Microsoft.Extensions.AmbientMetadata/ApplicationMetadataExtensions.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Assembly 'Microsoft.Extensions.AmbientMetadata.Application' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; - -namespace Microsoft.Extensions.AmbientMetadata; - -/// -/// Extensions for application metadata. -/// -public static class ApplicationMetadataExtensions -{ - /// - /// Registers a configuration provider for application metadata and binds a model object onto the configuration. - /// - /// The host builder. - /// Section name to bind configuration from. Default set to "ambientmetadata:application". - /// The value of >. - /// is . - /// is either , empty or whitespace. - public static IHostBuilder UseApplicationMetadata(this IHostBuilder builder, string sectionName = "ambientmetadata:application"); - - /// - /// Registers a configuration provider for application metadata. - /// - /// The configuration builder. - /// An instance of . - /// Section name to save configuration into. Default set to "ambientmetadata:application". - /// The value of >. - /// or is . - /// is either , empty or whitespace. - public static IConfigurationBuilder AddApplicationMetadata(this IConfigurationBuilder builder, IHostEnvironment hostEnvironment, string sectionName = "ambientmetadata:application"); - - /// - /// Adds an instance of to a dependency injection container. - /// - /// The dependency injection container to add the instance to. - /// The configuration section to bind. - /// The value of >. - /// or is . - public static IServiceCollection AddApplicationMetadata(this IServiceCollection services, IConfigurationSection section); - - /// - /// Adds an instance of to a dependency injection container. - /// - /// The dependency injection container to add the instance to. - /// The delegate to configure with. - /// The value of >. - /// or is . - public static IServiceCollection AddApplicationMetadata(this IServiceCollection services, Action configure); -} diff --git a/API/WithDocs/Microsoft.Extensions.AsyncState/AsyncStateExtensions.cs b/API/WithDocs/Microsoft.Extensions.AsyncState/AsyncStateExtensions.cs deleted file mode 100644 index a392de20321..00000000000 --- a/API/WithDocs/Microsoft.Extensions.AsyncState/AsyncStateExtensions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.AsyncState; - -/// -/// Extension methods to manipulate async state. -/// -public static class AsyncStateExtensions -{ - /// - /// Adds default implementations for , , and services. - /// - /// The dependency injection container to add the implementations to. - /// The value of . - /// is . - public static IServiceCollection AddAsyncStateCore(this IServiceCollection services); -} diff --git a/API/WithDocs/Microsoft.Extensions.AsyncState/AsyncStateToken.cs b/API/WithDocs/Microsoft.Extensions.AsyncState/AsyncStateToken.cs deleted file mode 100644 index 0d8ee0814a4..00000000000 --- a/API/WithDocs/Microsoft.Extensions.AsyncState/AsyncStateToken.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.AsyncState; - -/// -/// Async state token representing a registered context within the asynchronous state. -/// -public readonly struct AsyncStateToken : IEquatable -{ - /// - /// Determines whether the specified object is equal to the current async state token. - /// - /// The object to compare. - /// if the specified object is identical to the current async state token; otherwise, . - public override bool Equals(object? obj); - - /// - /// Determines whether this async state token and a specified async state token are identical. - /// - /// The other async state token. - /// if the two async state tokens are identical; otherwise, . - public bool Equals(AsyncStateToken other); - - /// - /// Returns the hash code for this instance. - /// - /// A 32-bit signed integer hash code. - public override int GetHashCode(); - - /// - /// Compares two instances. - /// - /// Left argument of the comparison. - /// Right argument of the comparison. - /// when equal, otherwise. - public static bool operator ==(AsyncStateToken left, AsyncStateToken right); - - /// - /// Compares two instances. - /// - /// Left argument of the comparison. - /// Right argument of the comparison. - /// when not equal, otherwise. - public static bool operator !=(AsyncStateToken left, AsyncStateToken right); -} diff --git a/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncContext.cs b/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncContext.cs deleted file mode 100644 index b848ab5fd92..00000000000 --- a/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncContext.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.AsyncState; - -/// -/// Provides access to the current async context. -/// -/// The type of the asynchronous state. -public interface IAsyncContext where T : notnull -{ - /// - /// Gets current async context. - /// - /// Current async context. - /// Context is not initialized. - /// - /// If you are getting an exception that context is not initialized, make sure that you initialized it before usage in your framework. - /// Also check if you are accessing the context from the current asynchronous flow, starting with context initialization. - /// - T? Get(); - - /// - /// Sets async context. - /// - /// Context to be set. - /// Context is not initialized. - /// - /// If you are getting an exception that context is not initialized, make sure that you initialized it before usage in your framework. - /// Also check if you are accessing the context from the current asynchronous flow, starting with context initialization. - /// - void Set(T? context); - - /// - /// Tries to get the current async context. - /// - /// Receives the context. - /// if the context is initialized; otherwise, . - bool TryGet([MaybeNullWhen(false)] out T? context); -} diff --git a/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncLocalContext.cs b/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncLocalContext.cs deleted file mode 100644 index 2463105b1e8..00000000000 --- a/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncLocalContext.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.AsyncState; - -/// -/// Provides access to the current async context stored outside of the HTTP pipeline. -/// -/// The type of the asynchronous state. -/// This type is intended for internal use. Use instead. -[Experimental("EXTEXP0006", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -[EditorBrowsable(EditorBrowsableState.Never)] -public interface IAsyncLocalContext : IAsyncContext where T : class -{ -} diff --git a/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncState.cs b/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncState.cs deleted file mode 100644 index ab81276c9ac..00000000000 --- a/API/WithDocs/Microsoft.Extensions.AsyncState/IAsyncState.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Assembly 'Microsoft.Extensions.AsyncState' - -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.AsyncState; - -/// -/// Encapsulates all information within the asynchronous flow in an variable. -/// -public interface IAsyncState -{ - /// - /// Initializes async state in current asynchronous flow. - /// - void Initialize(); - - /// - /// Resets async state after usage. - /// - void Reset(); - - /// - /// Tries to get the stored async context from the state. - /// - /// The token representing the state to extract. - /// - /// Receives the value associated with the specified token, if the context is initialized; - /// otherwise, the default value for the type of the parameter. - /// - /// if the context is initialized; otherwise, . - bool TryGet(AsyncStateToken token, [MaybeNullWhen(false)] out object? value); - - /// - /// Gets the stored async context from the state. - /// - /// The token representing the state to extract. - /// The context is not initialized. - /// The asynchronous state corresponding to the token. - object? Get(AsyncStateToken token); - - /// - /// Stores async context. - /// - /// The token representing the state to store. - /// New state value. - /// Context is not initialized. - void Set(AsyncStateToken token, object? value); - - /// - /// Registers new async context with the state. - /// - /// Token that gives access to the reserved context. - AsyncStateToken RegisterAsyncContext(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Classification/DataClassification.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Classification/DataClassification.cs deleted file mode 100644 index 3b8dfc9cb39..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Classification/DataClassification.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Classification; - -/// -/// Represents a set of data classes as a part of a data taxonomy. -/// -public readonly struct DataClassification : IEquatable -{ - /// - /// Represents unclassified data. - /// - public const ulong NoneTaxonomyValue = 0uL; - - /// - /// Represents the unknown classification. - /// - public const ulong UnknownTaxonomyValue = 9223372036854775808uL; - - /// - /// Gets the value to represent data with no defined classification. - /// - public static DataClassification None { get; } - - /// - /// Gets the value to represent data with an unknown classification. - /// - public static DataClassification Unknown { get; } - - /// - /// Gets the name of the taxonomy that recognizes this classification. - /// - public string TaxonomyName { get; } - - /// - /// Gets the bit mask representing the data classes. - /// - public ulong Value { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// The name of the taxonomy this classification belongs to. - /// The taxonomy-specific bit vector representing the data classes. - /// Bit 63, which corresponds to , is set in the value. - public DataClassification(string taxonomyName, ulong value); - - /// - /// Checks if object is equal to this instance of . - /// - /// Object to check for equality. - /// if object instances are equal otherwise. - public override bool Equals(object? obj); - - /// - /// Checks if object is equal to this instance of . - /// - /// Instance of to check for equality. - /// if object instances are equal otherwise. - public bool Equals(DataClassification other); - - /// - /// Get the hash code the current instance. - /// - /// Hash code. - public override int GetHashCode(); - - /// - /// Check if two instances are equal. - /// - /// Left argument of the comparison. - /// Right argument of the comparison. - /// if object instances are equal, or otherwise. - public static bool operator ==(DataClassification left, DataClassification right); - - /// - /// Check if two instances are not equal. - /// - /// Left argument of the comparison. - /// Right argument of the comparison. - /// if object instances are equal, or otherwise. - public static bool operator !=(DataClassification left, DataClassification right); - - /// - /// Combines together two data classifications. - /// - /// The first classification to combine. - /// The second classification to combine. - /// A new classification object representing the combination of the two input classifications. - /// The two classifications aren't part of the same taxonomy. - public static DataClassification Or(DataClassification left, DataClassification right); - - /// - /// Combines together two data classifications. - /// - /// The first classification to combine. - /// The second classification to combine. - /// A new classification object representing the combination of the two input classifications. - /// The two classifications aren't part of the same taxonomy. - public static DataClassification operator |(DataClassification left, DataClassification right); - - /// - /// Gets a string representation of this object. - /// - /// A string representing the object. - public override string ToString(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Classification/DataClassificationAttribute.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Classification/DataClassificationAttribute.cs deleted file mode 100644 index 40dbb4872e8..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Classification/DataClassificationAttribute.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Classification; - -/// -/// Base attribute for data classification. -/// -[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = true)] -public class DataClassificationAttribute : Attribute -{ - /// - /// Gets or sets the notes. - /// - /// Optional free-form text to provide context during a privacy audit. - public string Notes { get; set; } - - /// - /// Gets the data class represented by this attribute. - /// - public DataClassification Classification { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The data classification to apply. - protected DataClassificationAttribute(DataClassification classification); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Classification/NoDataClassificationAttribute.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Classification/NoDataClassificationAttribute.cs deleted file mode 100644 index 4a4377b524a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Classification/NoDataClassificationAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -namespace Microsoft.Extensions.Compliance.Classification; - -/// -/// Indicates data which is specifically not classified. -/// -public sealed class NoDataClassificationAttribute : DataClassificationAttribute -{ - /// - /// Initializes a new instance of the class. - /// - public NoDataClassificationAttribute(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Classification/UnknownDataClassificationAttribute.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Classification/UnknownDataClassificationAttribute.cs deleted file mode 100644 index 1e1d6e0f6f2..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Classification/UnknownDataClassificationAttribute.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -namespace Microsoft.Extensions.Compliance.Classification; - -/// -/// Indicates data whose classification is unknown. -/// -public sealed class UnknownDataClassificationAttribute : DataClassificationAttribute -{ - /// - /// Initializes a new instance of the class. - /// - public UnknownDataClassificationAttribute(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/ErasingRedactor.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/ErasingRedactor.cs deleted file mode 100644 index 698a89462d9..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/ErasingRedactor.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Redaction' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// Redactor that replaces anything with an empty string. -/// -public sealed class ErasingRedactor : Redactor -{ - /// - /// Gets the singleton instance of . - /// - public static ErasingRedactor Instance { get; } - - /// - public override int Redact(ReadOnlySpan source, Span destination); - - /// - public override int GetRedactedLength(ReadOnlySpan input); - - public ErasingRedactor(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/IRedactionBuilder.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/IRedactionBuilder.cs deleted file mode 100644 index 72edb67a91c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/IRedactionBuilder.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// Adds redactors to the application. -/// -public interface IRedactionBuilder -{ - /// - /// Gets the service collection into which the redactor instances are registered. - /// - IServiceCollection Services { get; } - - /// - /// Sets the redactor to use for a set of data classes. - /// - /// Redactor type. - /// The data classes for which the redactor type should be used. - /// The value of this instance. - /// is . - IRedactionBuilder SetRedactor(params DataClassification[] classifications) where T : Redactor; - - /// - /// Sets the redactor to use when processing classified data for which no specific redactor has been registered. - /// - /// Redactor type. - /// The value of this instance. - IRedactionBuilder SetFallbackRedactor() where T : Redactor; -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/IRedactorProvider.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/IRedactorProvider.cs deleted file mode 100644 index 883b49e347f..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/IRedactorProvider.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// Provides redactors for different data classes. -/// -public interface IRedactorProvider -{ - /// - /// Gets the redactor configured to handle the specified data class. - /// - /// Data classification of the data to redact. - /// A redactor suitable to redact data of the given class. - Redactor GetRedactor(DataClassification classification); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactor.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactor.cs deleted file mode 100644 index 2bf18ae78b7..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactor.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// Redactor that does nothing to its input and returns it as-is. -/// -public sealed class NullRedactor : Redactor -{ - /// - /// Gets the singleton instance of this class. - /// - public static NullRedactor Instance { get; } - - /// - public override int GetRedactedLength(ReadOnlySpan input); - - /// - public override int Redact(ReadOnlySpan source, Span destination); - - /// - public override string Redact(string? source); - - public NullRedactor(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactorProvider.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactorProvider.cs deleted file mode 100644 index 5f8fdb88ca9..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/NullRedactorProvider.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// A provider that only returns the redactor implementation used for situations that don't require redaction. -/// -public sealed class NullRedactorProvider : IRedactorProvider -{ - /// - /// Gets the singleton instance of this class. - /// - public static NullRedactorProvider Instance { get; } - - /// - public Redactor GetRedactor(DataClassification classification); - - public NullRedactorProvider(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/RedactionAbstractionsExtensions.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/RedactionAbstractionsExtensions.cs deleted file mode 100644 index 4c261db9bc6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/RedactionAbstractionsExtensions.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; -using System.Text; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// Redaction utility methods. -/// -public static class RedactionAbstractionsExtensions -{ - /// - /// Redacts potentially sensitive data and appends it to a instance. - /// - /// Instance of to append the redacted value. - /// The redactor that will redact the input value. - /// Value to redact. - /// Returns the value of . - /// - /// When the is nothing will be appended to the string builder. - /// - /// is . - /// is . - public static StringBuilder AppendRedacted(this StringBuilder stringBuilder, Redactor redactor, string? value); - - /// - /// Redacts potentially sensitive data and appends it to a instance. - /// - /// Instance of to append the redacted value. - /// The redactor that will redact the input value. - /// Value to redact. - /// Returns the value of . - /// is . - /// is . - public static StringBuilder AppendRedacted(this StringBuilder stringBuilder, Redactor redactor, ReadOnlySpan value); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/RedactionExtensions.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/RedactionExtensions.cs deleted file mode 100644 index 81ea16c9a06..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/RedactionExtensions.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Redaction' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// Add redaction to the application. -/// -public static class RedactionExtensions -{ - /// - /// Registers redaction in the application. - /// - /// instance. - /// The value of . - /// is . - public static IHostBuilder ConfigureRedaction(this IHostBuilder builder); - - /// - /// Registers redaction in the application. - /// - /// instance. - /// Configuration for . - /// The value of . - /// is . - /// is . - public static IHostBuilder ConfigureRedaction(this IHostBuilder builder, Action configure); - - /// - /// Registers redaction in the application. - /// - /// instance. - /// Configuration for . - /// The value of . - /// is . - /// is . - public static IHostBuilder ConfigureRedaction(this IHostBuilder builder, Action configure); - - /// - /// Registers an implementation of in the . - /// - /// Instance of used to configure redaction. - /// The value of . - /// is . - public static IServiceCollection AddRedaction(this IServiceCollection services); - - /// - /// Registers an implementation of in the and configures available redactors. - /// - /// Instance of used to configure redaction. - /// Configuration function for . - /// The value of . - /// is . - /// is . - public static IServiceCollection AddRedaction(this IServiceCollection services, Action configure); - - /// - /// Sets the xxHash3 redactor to use for a set of data classes. - /// - /// The builder to attach the redactor to. - /// Configuration function. - /// The data classes for which the redactor type should be used. - /// The value of . - /// , or are . - public static IRedactionBuilder SetXxHash3Redactor(this IRedactionBuilder builder, Action configure, params DataClassification[] classifications); - - /// - /// Sets the xxHash3 redactor to use for a set of data classes. - /// - /// The builder to attach the redactor to. - /// Configuration section. - /// The data classes for which the redactor type should be used. - /// The value of . - /// , or are . - public static IRedactionBuilder SetXxHash3Redactor(this IRedactionBuilder builder, IConfigurationSection section, params DataClassification[] classifications); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/Redactor.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/Redactor.cs deleted file mode 100644 index cf2f7925c45..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/Redactor.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// Enables the redaction of potentially sensitive data. -/// -public abstract class Redactor -{ - /// - /// Redacts potentially sensitive data. - /// - /// Value to redact. - /// Redacted value. - public string Redact(ReadOnlySpan source); - - /// - /// Redacts potentially sensitive data. - /// - /// Value to redact. - /// Buffer to store redacted value. - /// Number of characters produced when redacting the given source input. - /// is too small. - public abstract int Redact(ReadOnlySpan source, Span destination); - - /// - /// Redacts potentially sensitive data. - /// - /// Value to redact. - /// Buffer to redact into. - /// - /// Returns 0 when is . - /// - /// Number of characters written to the buffer. - /// is too small. - public int Redact(string? source, Span destination); - - /// - /// Redacts potentially sensitive data. - /// - /// Value to redact. - /// Redacted value. - /// - /// Returns an empty string when is . - /// - /// is . - public virtual string Redact(string? source); - - /// - /// Redacts potentially sensitive data. - /// - /// Type of value to redact. - /// Value to redact. - /// - /// The optional format that selects the specific formatting operation performed. Refer to the - /// documentation of the type being formatted to understand the values you can supply here. - /// - /// Format provider used to produce a string representing the value. - /// Redacted value. - public string Redact(T value, string? format = null, IFormatProvider? provider = null); - - /// - /// Redacts potentially sensitive data. - /// - /// Type of value to redact. - /// Value to redact. - /// Buffer to redact into. - /// - /// The optional format string that selects the specific formatting operation performed. Refer to the - /// documentation of the type being formatted to understand the values you can supply here. - /// - /// Format provider used to produce a string representing the value. - /// Number of characters written to the buffer. - /// is too small. - public int Redact(T value, Span destination, string? format = null, IFormatProvider? provider = null); - - /// - /// Tries to redact potentially sensitive data. - /// - /// The type of value to redact. - /// The value to redact. - /// The buffer to redact into. - /// When this method returns, contains the number of redacted characters that were written to the destination buffer. - /// - /// The format string that selects the specific formatting operation performed. Refer to the - /// documentation of the type being formatted to understand the values you can supply here. - /// - /// The format provider used to produce a string representing the value. - /// if the destination buffer was large enough, otherwise . - public bool TryRedact(T value, Span destination, out int charsWritten, ReadOnlySpan format, IFormatProvider? provider = null); - - /// - /// Gets the number of characters produced by redacting the input. - /// - /// Value to be redacted. - /// The number of characters produced by redacting the input. - public abstract int GetRedactedLength(ReadOnlySpan input); - - /// - /// Gets the number of characters produced by redacting the input. - /// - /// Value to be redacted. - /// Minimum buffer size. - public int GetRedactedLength(string? input); - - protected Redactor(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/XxHash3RedactorOptions.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/XxHash3RedactorOptions.cs deleted file mode 100644 index 4815a4f90a4..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Redaction/XxHash3RedactorOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Redaction' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Redaction; - -/// -/// Options for the XxHash3 redactor. -/// -public class XxHash3RedactorOptions -{ - /// - /// Gets or sets a hash seed used when computing hashes during redaction. - /// - /// - /// The default value is 0. - /// - /// - /// You typically pick a unique value for your application and don't change it afterwards. You'll want a different value for - /// different deployment environments in order to prevent identifiers from one environment being redacted to the same - /// value across environments. - /// - public ulong HashSeed { get; set; } - - public XxHash3RedactorOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeClassifications.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeClassifications.cs deleted file mode 100644 index 6313aec66a6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeClassifications.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Simple data classifications. -/// -public static class FakeClassifications -{ - /// - /// Gets the name of this classification taxonomy. - /// - public static string TaxonomyName { get; } - - /// - /// Gets the private data classification. - /// - public static DataClassification PrivateData { get; } - - /// - /// Gets the public data classification. - /// - public static DataClassification PublicData { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionCollector.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionCollector.cs deleted file mode 100644 index ad99075e683..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionCollector.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System.Collections.Generic; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Usage history of fake redaction types. -/// -public class FakeRedactionCollector -{ - /// - /// Gets the last redactor request "event". - /// - /// There has been no previous redactor request event. - public RedactorRequested LastRedactorRequested { get; } - - /// - /// Gets the full log of all redactor request events that happened. - /// - public IReadOnlyList AllRedactorRequests { get; } - - /// - /// Gets the last redaction "event". - /// - /// There has been no previous redaction event. - public RedactedData LastRedactedData { get; } - - /// - /// Gets the full log of all redaction events that happened. - /// - public IReadOnlyList AllRedactedData { get; } - - public FakeRedactionCollector(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionExtensions.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionExtensions.cs deleted file mode 100644 index 0dec53bf67c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactionExtensions.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Compliance.Redaction; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Extensions that allow registering a fake redactor in the application. -/// -public static class FakeRedactionExtensions -{ - /// - /// Sets the fake redactor to use for a set of data classes. - /// - /// The builder to attach the redactor to. - /// The data classes for which the redactor type should be used. - /// The value of . - /// is . - public static IRedactionBuilder SetFakeRedactor(this IRedactionBuilder builder, params DataClassification[] classifications); - - /// - /// Sets the fake redactor to use for a set of data classes. - /// - /// The builder to attach the redactor to. - /// Configuration function. - /// The data classes for which the redactor type should be used. - /// The value of . - /// or is . - public static IRedactionBuilder SetFakeRedactor(this IRedactionBuilder builder, Action configure, params DataClassification[] classifications); - - /// - /// Sets the fake redactor to use for a set of data classes. - /// - /// The builder to attach the redactor to. - /// Configuration section. - /// The data classes for which the redactor type should be used. - /// The value of . - /// or is . - public static IRedactionBuilder SetFakeRedactor(this IRedactionBuilder builder, IConfigurationSection section, params DataClassification[] classifications); - - /// - /// Registers the fake redactor provider that always returns fake redactor instances. - /// - /// Container used to register fake redaction classes. - /// The value of . - /// is . - public static IServiceCollection AddFakeRedaction(this IServiceCollection services); - - /// - /// Registers the fake redactor provider that always returns fake redactor instances. - /// - /// Container used to register fake redaction classes. - /// Configures fake redactor. - /// The value of . - /// or > are . - public static IServiceCollection AddFakeRedaction(this IServiceCollection services, Action configure); - - /// - /// Gets the fake redactor collector instance from the dependency injection container. - /// - /// The container used to obtain the collector instance. - /// The obtained collector. - /// The collector is not in the container. - /// is . - /// - /// should be registered and used only with fake redaction implementation. - /// - public static FakeRedactionCollector GetFakeRedactionCollector(this IServiceProvider serviceProvider); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactor.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactor.cs deleted file mode 100644 index a90c58b0a6e..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactor.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; -using System.Runtime.CompilerServices; -using System.Text; -using Microsoft.Extensions.Compliance.Redaction; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Redactor designed for use in tests. -/// -public class FakeRedactor : Redactor -{ - /// - /// Gets the collector of redaction events. - /// - public FakeRedactionCollector EventCollector { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The options to control the redactor's behavior. - /// Collects info about redacted values. - public FakeRedactor(IOptions? options = null, FakeRedactionCollector? collector = null); - - /// - /// Initializes a new instance of the class. - /// - /// The options to control behavior of redactor. - /// Collects info about redacted values. - /// New instance of . - public static FakeRedactor Create(FakeRedactorOptions? options = null, FakeRedactionCollector? collector = null); - - /// - public override int Redact(ReadOnlySpan source, Span destination); - - /// - public override int GetRedactedLength(ReadOnlySpan input); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorOptions.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorOptions.cs deleted file mode 100644 index 504619dd458..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Options to control the fake redactor. -/// -public class FakeRedactorOptions -{ - /// - /// Gets or sets a value indicating how to format redacted data. - /// - /// The default is "{0}". - /// - /// This is a composite format string that determines how redacted data looks. - /// - [Required] - [StringSyntax("CompositeFormat")] - public string RedactionFormat { get; set; } - - public FakeRedactorOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorProvider.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorProvider.cs deleted file mode 100644 index f39fb2fe0fd..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeRedactorProvider.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Compliance.Redaction; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// A provider of fake redactors. -/// -public class FakeRedactorProvider : IRedactorProvider -{ - /// - /// Gets the collector that stores data about usage of fake redaction classes. - /// - public FakeRedactionCollector Collector { get; } - - /// - /// Initializes a new instance of the class. - /// - /// Fake redactor options. - /// Collects information about redactor requests. - public FakeRedactorProvider(FakeRedactorOptions? options = null, FakeRedactionCollector? eventCollector = null); - - /// - public Redactor GetRedactor(DataClassification classification); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomy.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomy.cs deleted file mode 100644 index 177919f0cb6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomy.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Classes of data used for simple scenarios. -/// -[Flags] -public enum FakeTaxonomy : ulong -{ - /// - /// No data classification. - /// - None = 0uL, - /// - /// This is public data. - /// - PublicData = 1uL, - /// - /// This is private data. - /// - PrivateData = 2uL, - /// - /// Unknown data classification, handle with care. - /// - Unknown = 9223372036854775808uL -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomyExtensions.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomyExtensions.cs deleted file mode 100644 index b4e5c508b79..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/FakeTaxonomyExtensions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Extensions for working with the simple data classification taxonomy. -/// -public static class FakeTaxonomyExtensions -{ - /// - /// Gets the taxonomy value associated with a particular data classification. - /// - /// The data classification of interest. - /// The resulting taxonomy value for the given data classification. - public static FakeTaxonomy AsFakeTaxonomy(this DataClassification classification); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/PrivateDataAttribute.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/PrivateDataAttribute.cs deleted file mode 100644 index 51147245ec0..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/PrivateDataAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Private data. -/// -public sealed class PrivateDataAttribute : DataClassificationAttribute -{ - /// - /// Initializes a new instance of the class. - /// - public PrivateDataAttribute(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/PublicDataAttribute.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/PublicDataAttribute.cs deleted file mode 100644 index 0f8adcff17b..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/PublicDataAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// Public data. -/// -public sealed class PublicDataAttribute : DataClassificationAttribute -{ - /// - /// Initializes a new instance of the class. - /// - public PublicDataAttribute(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/RedactedData.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/RedactedData.cs deleted file mode 100644 index f6778dd56fb..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/RedactedData.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// State representing a single redaction "event". -/// -public readonly struct RedactedData : IEquatable -{ - /// - /// Gets the original data that got redacted. - /// - public string Original { get; } - - /// - /// Gets the redacted data. - /// - public string Redacted { get; } - - /// - /// Gets the order in which data was redacted. - /// - public int SequenceNumber { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// Data that was redacted. - /// Redacted data. - /// Order in which data were redacted. - public RedactedData(string original, string redacted, int sequenceNumber); - - /// - /// Checks if object is equal to this instance of . - /// - /// Object to check for equality. - /// if object instances are equal otherwise. - public override bool Equals(object? obj); - - /// - /// Checks if object is equal to this instance of . - /// - /// Instance to check for equality. - /// if object instances are equal otherwise. - public bool Equals(RedactedData other); - - /// - /// Get hashcode of given . - /// - /// Hash code. - public override int GetHashCode(); - - /// - /// Compares two instances. - /// - /// Left argument of the comparison. - /// Right argument of the comparison. - /// when equal, otherwise. - public static bool operator ==(RedactedData left, RedactedData right); - - /// - /// Compares two instances. - /// - /// Left argument of the comparison. - /// Right argument of the comparison. - /// when not equal, otherwise. - public static bool operator !=(RedactedData left, RedactedData right); -} diff --git a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/RedactorRequested.cs b/API/WithDocs/Microsoft.Extensions.Compliance.Testing/RedactorRequested.cs deleted file mode 100644 index 1b42982223d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Compliance.Testing/RedactorRequested.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Assembly 'Microsoft.Extensions.Compliance.Testing' - -using System; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Compliance.Testing; - -/// -/// State representing a single request for a redactor. -/// -public readonly struct RedactorRequested : IEquatable -{ - /// - /// Gets the data classification for which the redactor was returned. - /// - public DataClassification DataClassification { get; } - - /// - /// Gets the order in which the redactor was requested. - /// - public int SequenceNumber { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// Data class for which redactor was used. - /// Order in which the request was used. - public RedactorRequested(DataClassification classification, int sequenceNumber); - - /// - /// Checks if object is equal to this instance of . - /// - /// Object to check for equality. - /// if object instances are equal otherwise. - public override bool Equals(object? obj); - - /// - /// Checks if object is equal to this instance of . - /// - /// Instance to check for equality. - /// if object instances are equal otherwise. - public bool Equals(RedactorRequested other); - - /// - /// Get hashcode of given . - /// - /// Hash code. - public override int GetHashCode(); - - /// - /// Compares two instances. - /// - /// Left argument of the comparison. - /// Right argument of the comparison. - /// when equal, otherwise. - public static bool operator ==(RedactorRequested left, RedactorRequested right); - - /// - /// Compares two instances. - /// - /// Left argument of the comparison. - /// Right argument of the comparison. - /// when not equal, otherwise. - public static bool operator !=(RedactorRequested left, RedactorRequested right); -} diff --git a/API/WithDocs/Microsoft.Extensions.DependencyInjection/AutoActivationExtensions.cs b/API/WithDocs/Microsoft.Extensions.DependencyInjection/AutoActivationExtensions.cs deleted file mode 100644 index 7d7705ca954..00000000000 --- a/API/WithDocs/Microsoft.Extensions.DependencyInjection/AutoActivationExtensions.cs +++ /dev/null @@ -1,276 +0,0 @@ -// Assembly 'Microsoft.Extensions.DependencyInjection.AutoActivation' - -using System; -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.DependencyInjection; - -/// -/// Extension methods for automatically activating singletons after application starts. -/// -public static class AutoActivationExtensions -{ - /// - /// Enforces singleton activation at startup time rather then at runtime. - /// - /// The type of the service to activate. - /// The service collection containing the service. - /// The value of . - public static IServiceCollection ActivateSingleton(this IServiceCollection services) where TService : class; - - /// - /// Enforces singleton activation at startup time rather then at runtime. - /// - /// The service collection containing the service. - /// The type of the service to activate. - /// The value of . - public static IServiceCollection ActivateSingleton(this IServiceCollection services, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type serviceType); - - /// - /// Adds an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The factory that creates the service. - /// The type of the service to add. - /// The type of the implementation to use. - /// The value of . - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Func implementationFactory) where TService : class where TImplementation : class, TService; - - /// - /// Adds an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to add. - /// The type of the implementation to use. - /// The value of . - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services) where TService : class where TImplementation : class, TService; - - /// - /// Adds an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The factory that creates the service. - /// The type of the service to add. - /// The value of . - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Func implementationFactory) where TService : class; - - /// - /// Adds an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to add. - /// The value of . - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services) where TService : class; - - /// - /// Adds an auto-activated singleton service of the type specified in serviceType to the specified - /// . - /// - /// The service collection to add the service to. - /// The type of the service to register and the implementation to use. - /// The value of . - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Type serviceType); - - /// - /// Adds an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// The factory that creates the service. - /// The value of . - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Type serviceType, Func implementationFactory); - - /// - /// Adds an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// The implementation type of the service. - /// The value of . - public static IServiceCollection AddActivatedSingleton(this IServiceCollection services, Type serviceType, Type implementationType); - - /// - /// Tries to add an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - public static void TryAddActivatedSingleton(this IServiceCollection services, Type serviceType); - - /// - /// Tries to add an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// The implementation type of the service. - public static void TryAddActivatedSingleton(this IServiceCollection services, Type serviceType, Type implementationType); - - /// - /// Tries to add an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// The factory that creates the service. - public static void TryAddActivatedSingleton(this IServiceCollection services, Type serviceType, Func implementationFactory); - - /// - /// Tries to add an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to add. - public static void TryAddActivatedSingleton(this IServiceCollection services) where TService : class; - - /// - /// Tries to add an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to add. - /// The type of the implementation to use. - public static void TryAddActivatedSingleton(this IServiceCollection services) where TService : class where TImplementation : class, TService; - - /// - /// Tries to add an auto-activated singleton service. - /// - /// The service collection to add the service to. - /// The factory that creates the service. - /// The type of the service to add. - public static void TryAddActivatedSingleton(this IServiceCollection services, Func implementationFactory) where TService : class; - - /// - /// Enforces keyed singleton activation at startup time rather then at runtime. - /// - /// The type of the service to activate. - /// The service collection containing the service. - /// An object used to uniquely identify the specific service. - /// The value of . - public static IServiceCollection ActivateKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class; - - /// - /// Enforces keyed singleton activation at startup time rather then at runtime. - /// - /// The service collection to add the service to. - /// The type of the service to activate. - /// An object used to uniquely identify the specific service. - /// The value of . - public static IServiceCollection ActivateKeyedSingleton(this IServiceCollection services, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type serviceType, object? serviceKey); - - /// - /// Adds an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// An object used to uniquely identify the specific service. - /// The factory that creates the service. - /// The type of the service to add. - /// The type of the implementation to use. - /// The value of . - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey, Func implementationFactory) where TService : class where TImplementation : class, TService; - - /// - /// Adds an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// An object used to uniquely identify the specific service. - /// The type of the service to add. - /// The type of the implementation to use. - /// The value of . - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService; - - /// - /// Adds an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// An object used to uniquely identify the specific service. - /// The factory that creates the service. - /// The type of the service to add. - /// The value of . - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey, Func implementationFactory) where TService : class; - - /// - /// Adds an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// An object used to uniquely identify the specific service. - /// The type of the service to add. - /// The value of . - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class; - - /// - /// Adds an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register and the implementation to use. - /// An object used to uniquely identify the specific service. - /// The value of . - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey); - - /// - /// Adds an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// An object used to uniquely identify the specific service. - /// The factory that creates the service. - /// The value of . - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey, Func implementationFactory); - - /// - /// Adds an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// An object used to uniquely identify the specific service. - /// The implementation type of the service. - /// The value of . - public static IServiceCollection AddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey, Type implementationType); - - /// - /// Tries to add an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// An object used to uniquely identify the specific service. - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey); - - /// - /// Tries to add an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// An object used to uniquely identify the specific service. - /// The implementation type of the service. - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey, Type implementationType); - - /// - /// Tries to add an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// The type of the service to register. - /// An object used to uniquely identify the specific service. - /// The factory that creates the service. - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, Type serviceType, object? serviceKey, Func implementationFactory); - - /// - /// Tries to add an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// An object used to uniquely identify the specific service. - /// The type of the service to add. - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class; - - /// - /// Tries to add an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// An object used to uniquely identify the specific service. - /// The type of the service to add. - /// The type of the implementation to use. - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService; - - /// - /// Tries to add an auto-activated keyed singleton service. - /// - /// The service collection to add the service to. - /// An object used to uniquely identify the specific service. - /// The factory that creates the service. - /// The type of the service to add. - public static void TryAddActivatedKeyedSingleton(this IServiceCollection services, object? serviceKey, Func implementationFactory) where TService : class; -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/EnricherExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/EnricherExtensions.cs deleted file mode 100644 index 730da60983d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/EnricherExtensions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Lets you register telemetry enrichers in a dependency injection container. -/// -public static class EnricherExtensions -{ - /// - /// Registers a log enricher type. - /// - /// The dependency injection container to add the enricher type to. - /// Enricher type. - /// The value of . - /// is . - public static IServiceCollection AddLogEnricher(this IServiceCollection services) where T : class, ILogEnricher; - - /// - /// Registers a log enricher instance. - /// - /// The dependency injection container to add the enricher instance to. - /// The enricher instance to add. - /// The value of . - /// or is . - public static IServiceCollection AddLogEnricher(this IServiceCollection services, ILogEnricher enricher); - - /// - /// Registers a static log enricher type. - /// - /// The dependency injection container to add the enricher type to. - /// Enricher type. - /// The value of . - /// is . - public static IServiceCollection AddStaticLogEnricher(this IServiceCollection services) where T : class, IStaticLogEnricher; - - /// - /// Registers a static log enricher instance. - /// - /// The dependency injection container to add the enricher instance to. - /// The enricher instance to add. - /// The value of . - /// or is . - public static IServiceCollection AddStaticLogEnricher(this IServiceCollection services, IStaticLogEnricher enricher); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/IEnrichmentTagCollector.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/IEnrichmentTagCollector.cs deleted file mode 100644 index 0fd58e5c47c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/IEnrichmentTagCollector.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Allows enrichers to report enrichment properties. -/// -public interface IEnrichmentTagCollector -{ - /// - /// Adds a tag in form of a key/value pair. - /// - /// Enrichment property key. - /// Enrichment property value. - /// is an empty string. - /// - /// Either or is . - /// - /// - /// For log enrichment, is serialized as per the rules below: - /// - /// - /// Primitive types - /// recognized and efficiently serialized. - /// - /// - /// Arrays - /// recognized and serialized in a loop. - /// - /// - /// - /// recognized as IDictionary<string, object> and serialized in a loop. - /// - /// - /// - /// recognized and serialized after converting to . - /// - /// - /// All the rest - /// converted to as is and serialized. - /// - /// - /// For metric enrichment, is converted to format using method. - /// - void Add(string tagName, object tagValue); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ILogEnricher.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ILogEnricher.cs deleted file mode 100644 index dbab2c03762..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ILogEnricher.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Augments log records with additional properties. -/// -public interface ILogEnricher -{ - /// - /// Collects tags for a log record. - /// - /// Where the enricher puts the tags it produces. - void Enrich(IEnrichmentTagCollector collector); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/IStaticLogEnricher.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/IStaticLogEnricher.cs deleted file mode 100644 index 9d389a62b0d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/IStaticLogEnricher.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// A component that augments log records with additional properties which are unchanging over the life of the object. -/// -public interface IStaticLogEnricher -{ - /// - /// Called to collect tags for a log record. - /// - /// Where the enricher puts the tags it is producing. - void Enrich(IEnrichmentTagCollector collector); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherExtensions.cs deleted file mode 100644 index 6bbb75c5def..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherExtensions.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Provides extension methods for setting up Process enrichers in an . -/// -public static class ProcessEnricherExtensions -{ - /// - /// Adds an instance of the process enricher to the . - /// - /// The to add the process enricher to. - /// The so that additional calls can be chained. - /// is . - public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services); - - /// - /// Adds an instance of the process enricher to the . - /// - /// The to add the process enricher to. - /// The configuration delegate. - /// The so that additional calls can be chained. - /// Any of the arguments is . - public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, Action configure); - - /// - /// Adds an instance of the host enricher to the . - /// - /// The to add the process enricher to. - /// The to use for configuring in the process enricher. - /// The so that additional calls can be chained. - /// Any of the arguments is . - public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherTagNames.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherTagNames.cs deleted file mode 100644 index 62d96cb3eb8..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessEnricherTagNames.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Constants used for enrichment tags. -/// -public static class ProcessEnricherTagNames -{ - /// - /// Process ID. - /// - public const string ProcessId = "pid"; - - /// - /// Thread ID. - /// - public const string ThreadId = "tid"; - - /// - /// Gets a list of all dimension names. - /// - /// A read-only of all dimension names. - public static IReadOnlyList DimensionNames { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessLogEnricherOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessLogEnricherOptions.cs deleted file mode 100644 index 4bf84100748..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ProcessLogEnricherOptions.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Options for the process enricher. -/// -public class ProcessLogEnricherOptions -{ - /// - /// Gets or sets a value indicating whether current process ID is used for log enrichment. - /// - /// - /// The default value is . - /// - public bool ProcessId { get; set; } - - /// - /// Gets or sets a value indicating whether current thread ID is used for log enrichment. - /// - /// - /// The default value is . - /// - public bool ThreadId { get; set; } - - public ProcessLogEnricherOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherExtensions.cs deleted file mode 100644 index 7baef2749c4..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherExtensions.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Provides extension methods for setting up the service enrichers in an . -/// -public static class ServiceEnricherExtensions -{ - /// - /// Adds an instance of the service enricher to the . - /// - /// The to add the service enricher to. - /// The so that additional calls can be chained. - /// is . - public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services); - - /// - /// Adds an instance of the service enricher to the . - /// - /// The to add the service enricher to. - /// The configuration delegate. - /// The so that additional calls can be chained. - /// Any of the arguments is . - public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, Action configure); - - /// - /// Adds an instance of the service enricher to the . - /// - /// The to add the service enricher to. - /// The to use for configuring in the service enricher. - /// The so that additional calls can be chained. - /// Any of the arguments is . - public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherTags.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherTags.cs deleted file mode 100644 index 7d2ae23a25a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceEnricherTags.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Constants used for enrichment tags. -/// -public static class ServiceEnricherTags -{ - /// - /// Application name. - /// - public const string ApplicationName = "env_app_name"; - - /// - /// Environment name. - /// - public const string EnvironmentName = "env_cloud_env"; - - /// - /// Deployment ring. - /// - public const string DeploymentRing = "env_cloud_deploymentRing"; - - /// - /// Build version. - /// - public const string BuildVersion = "env_cloud_roleVer"; - - /// - /// Gets a list of all dimension names. - /// - /// A read-only of all dimension names. - public static IReadOnlyList DimensionNames { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceLogEnricherOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceLogEnricherOptions.cs deleted file mode 100644 index d2b5f5fa1ed..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Enrichment/ServiceLogEnricherOptions.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Enrichment; - -/// -/// Options for the service log enricher. -/// -public class ServiceLogEnricherOptions -{ - /// - /// Gets or sets a value indicating whether is used for logs enrichment. - /// - /// - /// The default value is . - /// - public bool EnvironmentName { get; set; } - - /// - /// Gets or sets a value indicating whether is used for logs enrichment. - /// - /// - /// The default value is . - /// - public bool ApplicationName { get; set; } - - /// - /// Gets or sets a value indicating whether is used for logs enrichment. - /// - /// - /// The default value is . - /// - public bool DeploymentRing { get; set; } - - /// - /// Gets or sets a value indicating whether is used for logs enrichment. - /// - /// - /// The default value is . - /// - public bool BuildVersion { get; set; } - - public ServiceLogEnricherOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummarizationExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummarizationExtensions.cs deleted file mode 100644 index 6987e504dc8..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummarizationExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -/// -/// Controls exception summarization. -/// -public static class ExceptionSummarizationExtensions -{ - /// - /// Registers an exception summarizer into a dependency injection container. - /// - /// The dependency injection container to add the summarizer to. - /// The value of . - /// is . - public static IServiceCollection AddExceptionSummarizer(this IServiceCollection services); - - /// - /// Registers an exception summarizer into a dependency injection container. - /// - /// The dependency injection container to add the summarizer to. - /// Delegates that configures the set of registered summary providers. - /// The value of . - /// or is . - public static IServiceCollection AddExceptionSummarizer(this IServiceCollection services, Action configure); - - /// - /// Registers a summary provider that handles , , and . - /// - /// The builder to attach the provider to. - /// The value of . - /// is . - public static IExceptionSummarizationBuilder AddHttpProvider(this IExceptionSummarizationBuilder builder); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummary.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummary.cs deleted file mode 100644 index c8db3fc5cc3..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/ExceptionSummary.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -/// -/// Holds a summary of an exception for use in telemetry. -/// -/// -/// Metric tags typically support a limited number of distinct values, and as such they are not suitable -/// to represent values which are highly variable, such as the result of . -/// An exception summary represents a low-cardinality version of an exception's information, suitable for such -/// cases. The summary never includes sensitive information. -/// -public readonly struct ExceptionSummary : IEquatable -{ - /// - /// Gets the type description of the exception. - /// - /// - /// This is not guaranteed to be a type name. In particular, for inner exceptions, this will include the - /// type name of the outer exception along with the type name of the inner exception. - /// - public string ExceptionType { get; } - - /// - /// Gets the summary description of the exception. - /// - public string Description { get; } - - /// - /// Gets the additional details of the exception. - /// - /// - /// This string can have a relatively high cardinality and is therefore not suitable as a metric dimension. It - /// is primarily intended for use in low-level diagnostics. - /// - public string AdditionalDetails { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// The type of the exception. - /// A summary description string for telemetry. - /// An additional details string, primarily for diagnostics and not telemetry. - public ExceptionSummary(string exceptionType, string description, string additionalDetails); - - /// - /// Gets a hash code for this object. - /// - /// A hash code for the current object. - public override int GetHashCode(); - - /// - /// Gets a string representation of this object. - /// - /// A string representing this object. - public override string ToString(); - - /// - /// Determines whether this summary and a specified other summary are identical. - /// - /// The other summary. - /// if the two summaries are identical; otherwise, . - public override bool Equals(object? obj); - - /// - /// Determines whether this summary and a specified other summary are identical. - /// - /// The other summary. - /// if the two summaries are identical; otherwise, . - public bool Equals(ExceptionSummary other); - - /// - /// Equality operator. - /// - /// First value. - /// Second value. - /// if the operands are equal, otherwise. - public static bool operator ==(ExceptionSummary left, ExceptionSummary right); - - /// - /// Inequality operator. - /// - /// First value. - /// Second value. - /// if the operands are equal, otherwise. - public static bool operator !=(ExceptionSummary left, ExceptionSummary right); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizationBuilder.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizationBuilder.cs deleted file mode 100644 index c77ee811d16..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizationBuilder.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -/// -/// Abstraction to register new exception summary providers. -/// -public interface IExceptionSummarizationBuilder -{ - /// - /// Gets the service collection into which the summary provider instances are registered. - /// - IServiceCollection Services { get; } - - /// - /// Adds a summary provider to the builder. - /// - /// The type of the provider. - /// The current instance. - IExceptionSummarizationBuilder AddProvider<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>() where T : class, IExceptionSummaryProvider; -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizer.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizer.cs deleted file mode 100644 index 29a1ed222d4..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummarizer.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -/// -/// Provides a mechanism to summarize exceptions for use in telemetry. -/// -public interface IExceptionSummarizer -{ - /// - /// Gives the best available summary of a given for telemetry. - /// - /// The exception to summarize. - /// The summary of the given . - ExceptionSummary Summarize(Exception exception); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummaryProvider.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummaryProvider.cs deleted file mode 100644 index 389edd09d17..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ExceptionSummarization/IExceptionSummaryProvider.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ExceptionSummarization' - -using System; -using System.Collections.Generic; - -namespace Microsoft.Extensions.Diagnostics.ExceptionSummarization; - -/// -/// The interface implemented by components which know how to summarize exceptions. -/// -/// -/// This is the interface implemented by summary providers which are consumed by the higher-level -/// summarization components. To receive summary information, applications use -/// instead. -/// -public interface IExceptionSummaryProvider -{ - /// - /// Gets the set of supported exception types that can be handled by this provider. - /// - IEnumerable SupportedExceptionTypes { get; } - - /// - /// Gets the set of description strings exposed by this provider. - /// - IReadOnlyList Descriptions { get; } - - /// - /// Provides the index of the description for the exception along with optional additional data. - /// - /// The exception. - /// The additional details of the given exception, if any. - /// The index of the description. - /// - /// This method should only get invoked with an exception which is type compatible with a type - /// described by . - /// - int Describe(Exception exception, out string? additionalDetails); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/CommonHealthChecksExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/CommonHealthChecksExtensions.cs deleted file mode 100644 index 4cb067da3de..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/CommonHealthChecksExtensions.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.Common' - -using System; -using System.Collections.Generic; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -/// -/// Controls various health check features. -/// -public static class CommonHealthChecksExtensions -{ - /// - /// Registers a health check provider that's tied to the application's lifecycle. - /// - /// The builder to add the provider to. - /// A list of tags that can be used to filter health checks. - /// The value of . - public static IHealthChecksBuilder AddApplicationLifecycleHealthCheck(this IHealthChecksBuilder builder, params string[] tags); - - /// - /// Registers a health check provider that's tied to the application's lifecycle. - /// - /// The builder to add the provider to. - /// A list of tags that can be used to filter health checks. - /// The value of . - /// or is . - public static IHealthChecksBuilder AddApplicationLifecycleHealthCheck(this IHealthChecksBuilder builder, IEnumerable tags); - - /// - /// Registers a health check provider that enables manual control of the application's health. - /// - /// The builder to add the provider to. - /// A list of tags that can be used to filter health checks. - /// The value of . - /// or is . - public static IHealthChecksBuilder AddManualHealthCheck(this IHealthChecksBuilder builder, params string[] tags); - - /// - /// Registers a health check provider that enables manual control of the application's health. - /// - /// The builder to add the provider to. - /// A list of tags that can be used to filter health checks. - /// The value of . - /// or is . - public static IHealthChecksBuilder AddManualHealthCheck(this IHealthChecksBuilder builder, IEnumerable tags); - - /// - /// Sets the manual health check to the healthy state. - /// - /// The . - /// is . - public static void ReportHealthy(this IManualHealthCheck manualHealthCheck); - - /// - /// Sets the manual health check to return an unhealthy states and an associated reason. - /// - /// The . - /// The reason why the health check is unhealthy. - /// is . - public static void ReportUnhealthy(this IManualHealthCheck manualHealthCheck, string reason); - - /// - /// Registers a health check publisher which emits telemetry representing the application's health. - /// - /// The dependency injection container to add the publisher to. - /// The value of . - /// is . - public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services); - - /// - /// Registers a health check publisher which emits telemetry representing the application's health. - /// - /// The dependency injection container to add the publisher to. - /// Configuration for . - /// The value of . - /// or is . - public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services, IConfigurationSection section); - - /// - /// Registers a health check publisher which emits telemetry representing the application's health. - /// - /// The dependency injection container to add the publisher to. - /// Configuration for . - /// The value of . - /// or is . - public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services, Action configure); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.T.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.T.cs deleted file mode 100644 index 8ec61e93da9..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.T.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.Common' - -using System; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -/// -/// Lets you manually set the application's health status. -/// -/// The type of . -public interface IManualHealthCheck : IManualHealthCheck, IDisposable -{ -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.cs deleted file mode 100644 index de0443d7fbe..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/IManualHealthCheck.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.Common' - -using System; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -/// -/// Lets you manually set the health status of the application. -/// -public interface IManualHealthCheck : IDisposable -{ - /// - /// Gets or sets the health status. - /// - HealthCheckResult Result { get; set; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUsageThresholds.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUsageThresholds.cs deleted file mode 100644 index 8f8855243f4..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUsageThresholds.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -/// -/// Threshold settings for . -/// -public class ResourceUsageThresholds -{ - /// - /// Gets or sets the percentage threshold for the degraded state. - /// - /// - /// The default value is . - /// - [Range(0.0, 100.0)] - public double? DegradedUtilizationPercentage { get; set; } - - /// - /// Gets or sets the percentage threshold for the unhealthy state. - /// - /// - /// The default value is . - /// - [Range(0.0, 100.0)] - public double? UnhealthyUtilizationPercentage { get; set; } - - public ResourceUsageThresholds(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckExtensions.cs deleted file mode 100644 index 9f66150cc5c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckExtensions.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization' - -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -/// -/// Controls resource utilization health check features. -/// -public static class ResourceUtilizationHealthCheckExtensions -{ - /// - /// Registers a health check provider that monitors resource utilization to assess the application's health. - /// - /// The builder to add the provider to. - /// A list of tags that can be used to filter health checks. - /// The value of . - /// is . - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, params string[] tags); - - /// - /// Registers a health check provider that monitors resource utilization to assess the application's health. - /// - /// The builder to add the provider to. - /// A list of tags that can be used to filter health checks. - /// The value of . - /// is . - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, IEnumerable tags); - - /// - /// Registers a health check provider that monitors resource utilization to assess the application's health. - /// - /// The builder to add the provider to. - /// Configuration for . - /// The value of . - /// or is . - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, IConfigurationSection section); - - /// - /// Registers a health check provider that monitors resource utilization to assess the application's health. - /// - /// The builder to add the provider to. - /// Configuration section holding an instance of . - /// A list of tags that can be used to filter health checks. - /// The value of . - /// , or is . - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, IConfigurationSection section, params string[] tags); - - /// - /// Registers a health check provider that monitors resource utilization to assess the application's health. - /// - /// The builder to add the provider to. - /// Configuration section holding an instance of . - /// A list of tags that can be used to filter health checks. - /// The value of . - /// , or is . - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, IConfigurationSection section, IEnumerable tags); - - /// - /// Registers a health check provider that monitors resource utilization to assess the application's health. - /// - /// The builder to add the provider to. - /// Configuration callback. - /// The value of . - /// or is . - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, Action configure); - - /// - /// Registers a health check provider that monitors resource utilization to assess the application's health. - /// - /// The builder to add the provider to. - /// Configuration callback. - /// A list of tags that can be used to filter health checks. - /// The value of . - /// , or is . - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, Action configure, params string[] tags); - - /// - /// Registers a health check provider that monitors resource utilization to assess the application's health. - /// - /// The builder to add the provider to. - /// Configuration callback. - /// A list of tags that can be used to filter health checks. - /// The value of . - /// , or is . - public static IHealthChecksBuilder AddResourceUtilizationHealthCheck(this IHealthChecksBuilder builder, Action configure, IEnumerable tags); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckOptions.cs deleted file mode 100644 index 1b0f36b765d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/ResourceUtilizationHealthCheckOptions.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization' - -using System; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -/// -/// Options for the resource utilization health check. -/// -public class ResourceUtilizationHealthCheckOptions -{ - /// - /// Gets or sets thresholds for CPU utilization. - /// - /// - /// The thresholds are periodically compared against the utilization samples provided by - /// the registered . - /// - [ValidateObjectMembers] - public ResourceUsageThresholds CpuThresholds { get; set; } - - /// - /// Gets or sets thresholds for memory utilization. - /// - /// - /// The thresholds are periodically compared against the utilization samples provided by - /// the registered . - /// - [ValidateObjectMembers] - public ResourceUsageThresholds MemoryThresholds { get; set; } - - /// - /// Gets or sets the time window for used for calculating CPU and memory utilization averages. - /// - /// - /// The default value is 5 seconds. - /// - [Microsoft.Shared.Data.Validation.TimeSpan(100, int.MaxValue)] - public TimeSpan SamplingWindow { get; set; } - - public ResourceUtilizationHealthCheckOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/TelemetryHealthCheckPublisherOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/TelemetryHealthCheckPublisherOptions.cs deleted file mode 100644 index e6dc1761f21..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.HealthChecks/TelemetryHealthCheckPublisherOptions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.HealthChecks.Common' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.HealthChecks; - -/// -/// Options for the telemetry health check publisher. -/// -public class TelemetryHealthCheckPublisherOptions -{ - /// - /// Gets or sets a value indicating whether to log only when unhealthy reports are received. - /// - /// - /// to only log unhealthy reports; to always log. - /// The default value is . - /// - public bool LogOnlyUnhealthy { get; set; } - - public TelemetryHealthCheckPublisherOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Checkpoint.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Checkpoint.cs deleted file mode 100644 index 2aeb6383648..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Checkpoint.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Represents an event and the time it occurred relative to a well-known starting point. -/// -/// -/// Related checkpoints are used to capture when sequential points in time are reached in an -/// operation like request execution. They are measured relative to the start of an operation and -/// hence capture latency as well as operation flow. -/// -public readonly struct Checkpoint : IEquatable -{ - /// - /// Gets the name of the checkpoint. - /// - public string Name { get; } - - /// - /// Gets the relative time since the beginning of the associated operation at which the checkpoint was created. - /// - public long Elapsed { get; } - - /// - /// Gets the frequency of the timestamp value. - /// - public long Frequency { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// Name of the checkpoint. - /// Elapsed time since start. - /// Frequency of the elapsed time. - public Checkpoint(string name, long elapsed, long frequency); - - /// - /// Determines whether this and a specified object are identical. - /// - /// The object to compare. - /// if identical; otherwise. - public override bool Equals(object? obj); - - /// - /// Determines whether this and a specified checkpoint are identical. - /// - /// The other checkpoint. - /// if identical; otherwise. - public bool Equals(Checkpoint other); - - /// - /// Gets a hash code for this object. - /// - /// A hash code for the current object. - public override int GetHashCode(); - - /// - /// Equality operator. - /// - /// First value. - /// Second value. - /// if the operands are equal, otherwise. - public static bool operator ==(Checkpoint left, Checkpoint right); - - /// - /// Inequality operator. - /// - /// First value. - /// Second value. - /// if the operands are unequal, otherwise. - public static bool operator !=(Checkpoint left, Checkpoint right); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/CheckpointToken.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/CheckpointToken.cs deleted file mode 100644 index ba6fc1ee2c6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/CheckpointToken.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Represents a registered checkpoint. -/// -public readonly struct CheckpointToken -{ - /// - /// Gets the name of the checkpoint. - /// - public string Name { get; } - - /// - /// Gets the position of token in the token table. - /// - public int Position { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// Name of the checkpoint. - /// Position of the token in the token table. - /// is . - public CheckpointToken(string name, int position); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContext.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContext.cs deleted file mode 100644 index a5dfaccb679..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContext.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Abstraction that provides the context for latency measurement and diagnostics. -/// -/// -/// The context ties in latency signals such as checkpoints and measures for a scope along with -/// mechanisms such as tags that allow describing the scope. For example, a context lets you record -/// tags, checkpoints and measures within the scope of a web request. -/// -public interface ILatencyContext : IDisposable -{ - /// - /// Gets the accumulated latency data. - /// - LatencyData LatencyData { get; } - - /// - /// Adds a tag to the context. - /// - /// The tag token. - /// The value of the tag. - /// - /// Tags are used to provide metadata to the context. These are pivots that are useful to - /// slice and dice the data for analysis. Examples include API, Client, UserType etc. - /// Setting a tag with same name overrides its prior value i.e., last call wins. - /// - /// is . - void SetTag(TagToken token, string value); - - /// - /// Adds a checkpoint to the context. - /// - /// The checkpoint token. - /// - /// A checkpoint can be added only once per context. Use checkpoints for - /// code that is non-reentrant per context. - /// - void AddCheckpoint(CheckpointToken token); - - /// - /// Adds to a measure. - /// - /// The measure token. - /// The value to add. - /// - /// Adds the value to a measure. Measures are used for tracking total latency - /// or the count for repeating operations. Example: Latency for all database calls, - /// number of calls to an external service, etc. - void AddMeasure(MeasureToken token, long value); - - /// - /// Sets a measure to an absolute value. - /// - /// The measure token. - /// The value to set. - void RecordMeasure(MeasureToken token, long value); - - /// - /// Stops the latency measurement. - /// - /// This prevents any state change to the context. - void Freeze(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextProvider.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextProvider.cs deleted file mode 100644 index cb3ddd39658..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextProvider.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// A factory of latency contexts. -/// -public interface ILatencyContextProvider -{ - /// - /// Creates a new . - /// - /// A new latency context. - ILatencyContext CreateContext(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextTokenIssuer.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextTokenIssuer.cs deleted file mode 100644 index 750fe60c872..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyContextTokenIssuer.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Issues tokens for various object types. -/// -public interface ILatencyContextTokenIssuer -{ - /// - /// Gets a token for a named tag. - /// - /// Name of the tag. - /// Token to use with . - /// is . - TagToken GetTagToken(string name); - - /// - /// Gets a token for a named checkpoint. - /// - /// Name of the checkpoint. - /// Token to use with . - /// is . - CheckpointToken GetCheckpointToken(string name); - - /// - /// Gets a token for a named measure. - /// - /// Name of the measure. - /// Token to use with - /// and . - /// is . - MeasureToken GetMeasureToken(string name); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyDataExporter.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyDataExporter.cs deleted file mode 100644 index d4c7e9a4a3f..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/ILatencyDataExporter.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Abstraction that is used to export latency data. -/// -/// This is called when latency context is frozen to export the context's data. -public interface ILatencyDataExporter -{ - /// - /// Exports latency data. - /// - /// The latency context's latency data. - /// The cancellation token. - /// A that represents the export operation. - Task ExportAsync(LatencyData data, CancellationToken cancellationToken); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleExtensions.cs deleted file mode 100644 index ec807e2749e..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleExtensions.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Extensions to add console latency data exporter. -/// -public static class LatencyConsoleExtensions -{ - /// - /// Add latency data exporter for the console. - /// - /// Dependency injection container. - /// Provided service collection with added. - /// is . - public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services); - - /// - /// Add latency data exporter for the console. - /// - /// Dependency injection container. - /// configuration delegate. - /// Provided service collection with added. - /// Either or is . - public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, Action configure); - - /// - /// Add latency data exporter for the console. - /// - /// Dependency injection container. - /// Configuration of . - /// Provided service collection with added. - /// Either or is . - public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleOptions.cs deleted file mode 100644 index b25ef71718f..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyConsoleOptions.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Options for console latency data exporter. -/// -public class LatencyConsoleOptions -{ - /// - /// Gets or sets a value indicating whether to emit latency checkpoint information to the console. - /// - /// - /// Defaults to . - /// - public bool OutputCheckpoints { get; set; } - - /// - /// Gets or sets a value indicating whether to emit latency tag information to the console. - /// - /// - /// Defaults to . - /// - public bool OutputTags { get; set; } - - /// - /// Gets or sets a value indicating whether to emit latency measure information to the console. - /// - /// - /// Defaults to . - /// - public bool OutputMeasures { get; set; } - - public LatencyConsoleOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextExtensions.cs deleted file mode 100644 index 1e044a0b1e6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Extensions to add latency context. -/// -public static class LatencyContextExtensions -{ - /// - /// Adds latency context. - /// - /// The dependency injection container. - /// The provided service collection with added. - public static IServiceCollection AddLatencyContext(this IServiceCollection services); - - /// - /// Adds latency context. - /// - /// The dependency injection container. - /// The configuration delegate. - /// The provided service collection with added. - public static IServiceCollection AddLatencyContext(this IServiceCollection services, Action configure); - - /// - /// Adds latency context. - /// - /// The dependency injection container. - /// The configuration of . - /// The provided service collection with added. - public static IServiceCollection AddLatencyContext(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextOptions.cs deleted file mode 100644 index d9ce658ce5a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextOptions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Options for LatencyContext. -/// -public class LatencyContextOptions -{ - /// - /// Gets or sets a value indicating whether an exception is thrown when using unregistered names. - /// - /// - /// if the ILatencyContext APIs throws when using unregistered names. to no-op. The default value is . - /// - public bool ThrowOnUnregisteredNames { get; set; } - - public LatencyContextOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextRegistrationOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextRegistrationOptions.cs deleted file mode 100644 index c77c6d294f1..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyContextRegistrationOptions.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Registered names for . -/// -public class LatencyContextRegistrationOptions -{ - /// - /// Gets or sets the list of registered checkpoint names. - /// - [Required] - public IReadOnlyList CheckpointNames { get; set; } - - /// - /// Gets or sets the list of registered measure names. - /// - [Required] - public IReadOnlyList MeasureNames { get; set; } - - /// - /// Gets or sets the list of registered tag names. - /// - [Required] - public IReadOnlyList TagNames { get; set; } - - public LatencyContextRegistrationOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyData.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyData.cs deleted file mode 100644 index e1517603201..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyData.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Encapsulates the state accumulated while measuring the latency of an operaiton. -/// -public readonly struct LatencyData -{ - /// - /// Gets the list of checkpoints added while measuring the operation's latency. - /// - public ReadOnlySpan Checkpoints { get; } - - /// - /// Gets the list of tags added to provide metadata about the operation being measured. - /// - public ReadOnlySpan Tags { get; } - - /// - /// Gets the list of measures added. - /// - public ReadOnlySpan Measures { get; } - - /// - /// Gets the total time measured by the latency context. - /// - public long DurationTimestamp { get; } - - /// - /// Gets the frequency of the duration timestamp. - /// - public long DurationTimestampFrequency { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// List of tags. - /// List of checkpoints. - /// List of measures. - /// Total duration of the operation that is represented by this data. - /// Frequency of the duration timestamp. - public LatencyData(ArraySegment tags, ArraySegment checkpoints, ArraySegment measures, long durationTimestamp, long durationTimestampFrequency); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyRegistryExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyRegistryExtensions.cs deleted file mode 100644 index f038763db52..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/LatencyRegistryExtensions.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Extensions to configure a latency context. -/// -public static class LatencyRegistryExtensions -{ - /// - /// Registers a set of checkpoint names for a latency context. - /// - /// The dependency injection container to add the names to. - /// Set of checkpoint names. - /// The value of . - /// or is . - public static IServiceCollection RegisterCheckpointNames(this IServiceCollection services, params string[] names); - - /// - /// Registers a set of measure names for a latency context. - /// - /// The dependency injection container to add the names to. - /// Set of measure names. - /// Provided service collection. - /// or is . - public static IServiceCollection RegisterMeasureNames(this IServiceCollection services, params string[] names); - - /// - /// Registers a set of tag names for a latency context. - /// - /// The dependency injection container to add the names to. - /// Set of tag names. - /// Provided service collection. - /// or is . - public static IServiceCollection RegisterTagNames(this IServiceCollection services, params string[] names); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Measure.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Measure.cs deleted file mode 100644 index 400e601172d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Measure.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Represents a measure. -/// -/// -/// Measures are used to aggregate or record values. They are used to track -/// statistics about recurring operations. Example: number of calls to -/// a database, total latency of database calls etc. -/// -public readonly struct Measure : IEquatable -{ - /// - /// Gets the name of the measure. - /// - public string Name { get; } - - /// - /// Gets the value of the measure. - /// - public long Value { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// Name of the counter. - /// Value of the counter. - public Measure(string name, long value); - - /// - /// Determines whether this and a specified object are identical. - /// - /// /// The object to compare. - /// if identical; otherwise. - public override bool Equals(object? obj); - - /// - /// Determines whether this and a specified measure are identical. - /// - /// The other measure. - /// if identical; otherwise. - public bool Equals(Measure other); - - /// - /// Gets a hash code for this object. - /// - /// A hash code for the current object. - public override int GetHashCode(); - - /// - /// Equality operator. - /// - /// First value. - /// Second value. - /// if the operands are equal, otherwise. - public static bool operator ==(Measure left, Measure right); - - /// - /// Inequality operator. - /// - /// First value. - /// Second value. - /// if the operands are unequal, otherwise. - public static bool operator !=(Measure left, Measure right); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/MeasureToken.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/MeasureToken.cs deleted file mode 100644 index 60a4f3f7001..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/MeasureToken.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Represents a registered measure. -/// -public readonly struct MeasureToken -{ - /// - /// Gets the name of the measure. - /// - public string Name { get; } - - /// - /// Gets the position of the token in the token table. - /// - public int Position { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// Name of the measure. - /// Position of the token in the token table. - /// is . - public MeasureToken(string name, int position); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/NullLatencyContextExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/NullLatencyContextExtensions.cs deleted file mode 100644 index 35d68cfa368..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/NullLatencyContextExtensions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Extensions to add a no-op latency context. -/// -public static class NullLatencyContextExtensions -{ - /// - /// Adds a no-op latency context to a dependency injection container. - /// - /// The dependency injection container to add the context to. - /// The value of . - /// is . - public static IServiceCollection AddNullLatencyContext(this IServiceCollection services); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Tag.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Tag.cs deleted file mode 100644 index 908110fe0b0..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/Tag.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Represents a name and value pair to provide metadata about an operation being measured. -/// -public readonly struct Tag -{ - /// - /// Gets the name of the tag. - /// - public string Name { get; } - - /// - /// Gets the value of the tag. - /// - public string Value { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// Name of the tag. - /// Value of the tag. - public Tag(string name, string value); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/TagToken.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/TagToken.cs deleted file mode 100644 index 90622f5c557..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Latency/TagToken.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Latency; - -/// -/// Represents a registered tag. -/// -public readonly struct TagToken -{ - /// - /// Gets the name of the tag. - /// - public string Name { get; } - - /// - /// Gets the position of the token in the token table. - /// - public int Position { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// Name of the tag. - /// Position of the token in the token table. - /// is . - public TagToken(string name, int position); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/CollectedMeasurement.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/CollectedMeasurement.cs deleted file mode 100644 index 1e7dc66d731..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/CollectedMeasurement.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics.Testing; - -/// -/// Represents a single measurement performed by an instrument. -/// -/// The type of metric measurement value. -[DebuggerDisplay("{DebuggerToString(),nq}")] -public sealed class CollectedMeasurement where T : struct -{ - /// - /// Gets a measurement's value. - /// - public T Value { get; } - - /// - /// Gets a timestamp indicating when the measurement was recorded. - /// - public DateTimeOffset Timestamp { get; } - - /// - /// Gets the measurement's dimensions. - /// - public IReadOnlyDictionary Tags { get; } - - /// - /// Checks that the measurement includes a specific set of tags with specific values. - /// - /// The set of tags to check. - /// if all the tags exist in the measurement with matching values, otherwise . - public bool ContainsTags(params KeyValuePair[] tags); - - /// - /// Checks that the measurement includes a specific set of tags with any value. - /// - /// The set of tag names to check. - /// if all the tags exist in the measurement, otherwise . - public bool ContainsTags(params string[] tags); - - /// - /// Checks that the measurement has an exactly matching set of tags with specific values. - /// - /// The set of tags to check. - /// if all the tags exist in the measurement with matching values, otherwise . - public bool MatchesTags(params KeyValuePair[] tags); - - /// - /// Checks that the measurement has a exactly matching set of tags with any value. - /// - /// The set of tag names to check. - /// if all the tag names exist in the measurement, otherwise . - public bool MatchesTags(params string[] tags); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MeasurementExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MeasurementExtensions.cs deleted file mode 100644 index 849d7a50a87..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MeasurementExtensions.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System.Collections.Generic; - -namespace Microsoft.Extensions.Diagnostics.Metrics.Testing; - -/// -/// Extensions to simplify working with lists of measurements. -/// -public static class MeasurementExtensions -{ - /// - /// Filters a list of measurements based on subset tags matching. - /// - /// The type of measurement value. - /// The original full list of measurements. - /// The set of tags to match against. Only measurements that have at least these matching tags are returned. - /// A list of matching measurements. - public static IEnumerable> ContainsTags(this IEnumerable> measurements, params KeyValuePair[] tags) where T : struct; - - /// - /// Filters a list of measurements based on subset tag matching. - /// - /// The type of measurement value. - /// The original full list of measurements. - /// The set of tags to match against. Only measurements that have at least these matching tag names are returned. - /// A list of matching measurements. - public static IEnumerable> ContainsTags(this IEnumerable> measurements, params string[] tags) where T : struct; - - /// - /// Filters a list of measurements based on exact tag matching. - /// - /// The type of measurement value. - /// The original full list of measurements. - /// The set of tags to match against. Only measurements that have exactly those matching tags are returned. - /// A list of matching measurements. - public static IEnumerable> MatchesTags(this IEnumerable> measurements, params KeyValuePair[] tags) where T : struct; - - /// - /// Filters a list of measurements based on exact tag name matching. - /// - /// The type of measurement value. - /// The original full list of measurements. - /// The set of tags to match against. Only measurements that have exactly those matching tag names are returned. - /// A list of matching measurements. - public static IEnumerable> MatchesTags(this IEnumerable> measurements, params string[] tags) where T : struct; - - /// - /// Process the series of measurements adding all values together to produce a final count, identical to what a instrument would produce. - /// - /// The type of measurement value. - /// The list of measurements to process. - /// The resulting count. - public static T EvaluateAsCounter(this IEnumerable> measurements) where T : struct; -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MetricCollector.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MetricCollector.cs deleted file mode 100644 index 871e07d3311..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics.Testing/MetricCollector.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.Metrics; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Diagnostics.Metrics.Testing; - -/// -/// Collects the measurements published from an or . -/// -/// The type of metric data being recorded. -[DebuggerDisplay("{_measurements.Count} measurements")] -public sealed class MetricCollector : IDisposable where T : struct -{ - /// - /// Gets the that is being recorded. - /// - /// - /// This may be until the instrument is published. - /// - public Instrument? Instrument { get; } - - /// - /// Gets the latest measurement collected, if any. - /// - public CollectedMeasurement? LastMeasurement { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The to record measurements from. - /// The time provider to use, or to use the system time provider. - public MetricCollector(Instrument instrument, TimeProvider? timeProvider = null); - - /// - /// Initializes a new instance of the class. - /// - /// The to record measurements from. - /// The time provider to use, or to use the system time provider. - public MetricCollector(ObservableInstrument instrument, TimeProvider? timeProvider = null); - - /// - /// Initializes a new instance of the class. - /// - /// The scope of the meter that publishes the instrument to record. - /// Take caution when using Meters in the global scope (scope == null). This interacts with - /// static mutable data and tests doing this should not be run in parallel with each other. - /// - /// The name of the meter that publishes the instrument to record. - /// The name of the instrument to record. - /// The time provider to use, or to use the system time provider. - /// - /// Both the meter name and scope are used to identity the meter of interest. - /// - public MetricCollector(object? meterScope, string meterName, string instrumentName, TimeProvider? timeProvider = null); - - /// - /// Initializes a new instance of the class. - /// - /// The meter that publishes the instrument to record. - /// The name of the instrument to record. - /// The time provider to use, or to use the system time provider. - public MetricCollector(Meter meter, string instrumentName, TimeProvider? timeProvider = null); - - /// - /// Disposes the and stops recording measurements. - /// - public void Dispose(); - - /// - /// Removes all accumulated measurements from the collector. - /// - public void Clear(); - - /// - /// Gets a snapshot of measurements collected by this collector. - /// - /// Setting this to will atomically clear the set of accumulated measurements. - /// The measurements recorded by this collector, ordered by recording time. - public IReadOnlyList> GetMeasurementSnapshot(bool clear = false); - - /// - /// Returns a task that completes when the collector has collected a minimum number of measurements. - /// - /// The minimum number of measurements to wait for. - /// The cancellation token. - /// A task that completes when the collector has collected the requisite number of measurements. - public Task WaitForMeasurementsAsync(int minCount, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Returns a task that completes when the collector has collected a minimum number of measurements. - /// - /// The minimum number of measurements to wait for. - /// How long to wait. - /// A task that completes when the collector has collected the requisite number of measurements. - public Task WaitForMeasurementsAsync(int minCount, TimeSpan timeout); - - /// - /// Scan all registered observable instruments. - /// - public void RecordObservableInstruments(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.T.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.T.cs deleted file mode 100644 index a1a91c4b771..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.T.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -/// -/// Provides information to guide the production of a strongly-typed 64 bit integer counter metric factory method and associated type. -/// -/// -/// The type of value the counter will hold, which is limited to , , , , -/// , , or . -/// -/// -/// This attribute is applied to a method which has the following constraints: -/// -/// Must be a partial method. -/// Must return metricName as the type. A class with that name will be generated. -/// Must not be generic. -/// Must have System.Diagnostics.Metrics.Meter as first parameter. -/// Must have all the keys provided in staticTags as string type parameters. -/// -/// -/// -/// -/// static partial class Metric -/// { -/// [Counter<int>("RequestName", "RequestStatusCode")] -/// static partial RequestCounter CreateRequestCounter(Meter meter); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class CounterAttribute : Attribute where T : struct -{ - /// - /// Gets or sets the name of the metric. - /// - /// - /// - /// static partial class Metric - /// { - /// [Counter<int>("RequestName", "RequestStatusCode", Name="SampleMetric")] - /// static partial RequestCounter CreateRequestCounter(Meter meter); - /// } - /// - /// - /// - /// In this example, the metric name is SampleMetric. When Name is not provided - /// the return type of the method is used as metric name. In this example, this would - /// be RequestCounter if Name wasn't provided. - /// - public string? Name { get; set; } - - /// - /// Gets the metric's tag names. - /// - public string[]? TagNames { get; } - - /// - /// Gets the type that supplies metric tag values. - /// - public Type? Type { get; } - - /// - /// Initializes a new instance of the class. - /// - /// variable array of tag names. - public CounterAttribute(params string[] tagNames); - - /// - /// Initializes a new instance of the class. - /// - /// A type providing the metric tag names. The tag values are taken from the type's public fields and properties. - public CounterAttribute(Type type); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.cs deleted file mode 100644 index dc4e33151e1..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/CounterAttribute.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -/// -/// Provides information to guide the production of a strongly-typed 64 bit integer counter metric factory method and associated type. -/// -/// -/// This attribute is applied to a method which has the following constraints: -/// -/// Must be a partial method. -/// Must return metricName as the type. A class with that name will be generated. -/// Must not be generic. -/// Must have System.Diagnostics.Metrics.Meter as first parameter. -/// Must have all the keys provided in staticTagNames as string type parameters. -/// -/// -/// -/// -/// static partial class Metric -/// { -/// [Counter("RequestName", "RequestStatusCode")] -/// static partial RequestCounter CreateRequestCounter(Meter meter); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class CounterAttribute : Attribute -{ - /// - /// Gets or sets the name of the metric. - /// - /// - /// - /// static partial class Metric - /// { - /// [Counter("RequestName", "RequestStatusCode", Name="SampleMetric")] - /// static partial RequestCounter CreateRequestCounter(Meter meter); - /// } - /// - /// - /// - /// In this example, the metric name is SampleMetric. When Name is not provided - /// the return type of the method is used as metric name. In this example, this would - /// be RequestCounter if Name wasn't provided. - /// - public string? Name { get; set; } - - /// - /// Gets the metric's tag names. - /// - public string[]? TagNames { get; } - - /// - /// Gets the type that supplies metric tags values. - /// - public Type? Type { get; } - - /// - /// Initializes a new instance of the class. - /// - /// Dimension names. - public CounterAttribute(params string[] tagNames); - - /// - /// Initializes a new instance of the class. - /// - /// A type providing the metric tag names. The tag values are taken from the type's public fields and properties. - public CounterAttribute(Type type); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/GaugeAttribute.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/GaugeAttribute.cs deleted file mode 100644 index 1fe3112b212..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/GaugeAttribute.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -/// -/// Provides information to guide the production of a strongly-typed gauge metric factory method and associated type. -/// -/// -/// This attribute is applied to a method which has the following constraints: -/// -/// Must be a partial method. -/// Must return metricName as the type. A class with that name will be generated. -/// Must not be generic. -/// Must have System.Diagnostics.Metrics.Meter as first parameter. -/// Must have all the keys provided in staticTags as string type parameters. -/// -/// -/// -/// -/// static partial class Metric -/// { -/// [Gauge] -/// static partial MemoryUsage CreateMemoryUsage(Meter meter); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class GaugeAttribute : Attribute -{ - /// - /// Gets or sets the name of the metric. - /// - /// - /// - /// static partial class Metric - /// { - /// [Gauge(Name="SampleMetric")] - /// static partial MemoryUsage CreateMemoryUsage(Meter meter); - /// } - /// - /// - /// - /// In this example the metric name is SampleMetric. When Name is not provided - /// the return type of the method is used as metric name. In this example, this would - /// be MemoryUsage if Name wasn't provided. - /// - public string? Name { get; set; } - - /// - /// Gets the metric's tag names. - /// - public string[]? TagNames { get; } - - /// - /// Gets the type that supplies metric tag values. - /// - public Type? Type { get; } - - /// - /// Initializes a new instance of the class. - /// - /// Variable array of tag names. - public GaugeAttribute(params string[] tagNames); - - /// - /// Initializes a new instance of the class. - /// - /// A type providing the metric tag names. The tag values are taken from the type's public fields and properties. - public GaugeAttribute(Type type); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.T.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.T.cs deleted file mode 100644 index 1740b8e5f80..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.T.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -/// -/// Provides information to guide the production of a strongly-typed histogram metric factory method and associated type. -/// -/// -/// The type of value the histogram will hold, which is limited to , , , , -/// , , or . -/// -/// -/// This attribute is applied to a method which has the following constraints: -/// -/// Must be a partial method. -/// Must return metricName as the type. A class with that name will be generated. -/// Must not be generic. -/// Must have System.Diagnostics.Metrics.Meter as first parameter. -/// Must have all the keys provided in staticTags as string type parameters. -/// -/// -/// -/// -/// static partial class Metric -/// { -/// [Histogram<int>("RequestName", "RequestStatusCode")] -/// static partial RequestLatency CreateRequestLatency(Meter meter); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class HistogramAttribute : Attribute where T : struct -{ - /// - /// Gets or sets the name of the metric. - /// - /// - /// In this example metric name is SampleMetric. - /// If Name wasn't passed, it would be RequestLatency. - /// - /// static partial class Metric - /// { - /// [Histogram<int>("RequestName", "RequestStatusCode", Name = "SampleMetric")] - /// static partial RequestLatency CreateRequestLatency(Meter meter); - /// } - /// - /// - /// - /// In this example the metric name is SampleMetric. When Name is not provided - /// the return type of the method is used as metric name. In this example, this would - /// be RequestLatency if Name wasn't provided. - /// - public string? Name { get; set; } - - /// - /// Gets the metric's tag names. - /// - public string[]? TagNames { get; } - - /// - /// Gets the type that supplies metric tag values. - /// - public Type? Type { get; } - - /// - /// Initializes a new instance of the class. - /// - /// variable array of tag names. - public HistogramAttribute(params string[] tagNames); - - /// - /// Initializes a new instance of the class. - /// - /// A type providing the metric tag names. The tag values are taken from the type's public fields and properties. - public HistogramAttribute(Type type); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.cs deleted file mode 100644 index ee99e837a76..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/HistogramAttribute.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -/// -/// Provides information to guide the production of a strongly-typed histogram metric factory method and associated type. -/// -/// -/// This attribute is applied to a method which has the following constraints: -/// -/// Must be a partial method. -/// Must return metricName as the type. A class with that name will be generated. -/// Must not be generic. -/// Must have System.Diagnostics.Metrics.Meter as first parameter. -/// Must have all the keys provided in staticTags as string type parameters. -/// -/// -/// -/// -/// static partial class Metric -/// { -/// [Histogram("RequestName", "RequestStatusCode")] -/// static partial RequestLatency CreateRequestLatency(Meter meter); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class HistogramAttribute : Attribute -{ - /// - /// Gets or sets the name of the metric. - /// - /// - /// - /// static partial class Metric - /// { - /// [Histogram("RequestName", "RequestStatusCode", Name="SampleMetric")] - /// static partial RequestLatency CreateRequestLatency(Meter meter); - /// } - /// - /// - /// - /// In this example the metric name is SampleMetric. When Name is not provided - /// the return type of the method is used as metric name. In this example, this would - /// be RequestLatency if Name wasn't provided. - /// - public string? Name { get; set; } - - /// - /// Gets the metric's tags. - /// - public string[]? TagNames { get; } - - /// - /// Gets the type that supplies metric tag values. - /// - public Type? Type { get; } - - /// - /// Initializes a new instance of the class. - /// - /// variable array of tag names. - public HistogramAttribute(params string[] tagNames); - - /// - /// Initializes a new instance of the class. - /// - /// A type providing the metric tag names. The tag values are taken from the type's public fields and properties. - public HistogramAttribute(Type type); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/Meter.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/Meter.cs deleted file mode 100644 index 6eccda01b30..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/Meter.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Diagnostics.CodeAnalysis; -using System.Diagnostics.Metrics; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -/// -/// A meter class where the meter name is derived from the specified type name. -/// -/// The type whose name is used as the meter name. -[Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public class Meter : Meter -{ - /// - /// Initializes a new instance of the class. - /// - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public Meter(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/MetricsExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/MetricsExtensions.cs deleted file mode 100644 index 4aa120f8d2a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/MetricsExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -/// -/// Extensions to control metering integration. -/// -public static class MetricsExtensions -{ - /// - /// Registers to a dependency injection container. - /// - /// The dependency injection container to register metering into. - /// The value of . - [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IServiceCollection RegisterMetrics(this IServiceCollection services); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/TagNameAttribute.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/TagNameAttribute.cs deleted file mode 100644 index 4c95e3270b8..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Metrics/TagNameAttribute.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.Metrics; - -/// -/// Provides tag information for strongly-typed metrics. -/// -/// -/// This attribute is applied to fields or properties of a metric class to override default tag names. By default, -/// the tag name is the same as the respective field or property. Using this attribute you can override the default -/// and provide a custom tag name. -/// -/// -/// -/// public class MyStrongTypeMetric -/// { -/// [TagName("tag_name_as_per_some_convention1")] -/// public string Name1 { get; set; } -/// -/// [TagName("tag_name_as_per_some_convention2")] -/// public string Name2; -/// } -/// -/// -[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] -public sealed class TagNameAttribute : Attribute -{ - /// - /// Gets the name of the tag. - /// - public string Name { get; } - - /// - /// Initializes a new instance of the class. - /// - /// Tag name. - public TagNameAttribute(string name); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesExtensions.cs deleted file mode 100644 index a1a004b33de..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesExtensions.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.Probes' - -using System; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.Probes; - -/// -/// Extensions for setting up probes for Kubernetes. -/// -public static class KubernetesProbesExtensions -{ - /// - /// Registers liveness, startup and readiness probes using the default options. - /// - /// The dependency injection container to add the probe to. - /// The value of . - public static IServiceCollection AddKubernetesProbes(this IServiceCollection services); - - /// - /// Registers liveness, startup and readiness probes using the configured options. - /// - /// The dependency injection container to add the probe to. - /// Configuration for . - /// The value of . - public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, IConfigurationSection section); - - /// - /// Registers liveness, startup and readiness probes using the configured options. - /// - /// The dependency injection container to add the probe to. - /// Configure action for . - /// The value of . - public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, Action configure); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesOptions.cs deleted file mode 100644 index 53fd999774c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/KubernetesProbesOptions.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.Probes' - -using System; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Diagnostics.HealthChecks; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Diagnostics.Probes; - -/// -/// Options for Kubernetes probes. -/// -public class KubernetesProbesOptions -{ - /// - /// Options to control TCP-based health check probes. - /// - public class EndpointOptions - { - /// - /// Gets or sets the TCP port that gets opened if the service is healthy and closed otherwise. - /// - /// - /// The default value is 2305. - /// - [Range(1, 65535)] - public int TcpPort { get; set; } - - /// - /// Gets or sets the maximum length of the pending connections queue. - /// - /// - /// The default value is 10. - /// - [Range(1, 10000)] - public int MaxPendingConnections { get; set; } - - /// - /// Gets or sets the interval at which the health of the application is assessed. - /// - /// - /// The default value is 30 seconds. - /// - [TimeSpan("00:00:05", "00:05:00")] - public TimeSpan HealthAssessmentPeriod { get; set; } - - /// - /// Gets or sets a predicate that is used to include health checks based on user-defined criteria. - /// - /// - /// The default value is , which has the effect of enabling all health checks. - /// - public Func? FilterChecks { get; set; } - - public EndpointOptions(); - } - - /// - /// Gets or sets the options for the liveness probe. - /// - /// - /// Default port is 2305. - /// - public EndpointOptions LivenessProbe { get; set; } - - /// - /// Gets or sets the options for the startup probe. - /// - /// - /// Default port is 2306. - /// - public EndpointOptions StartupProbe { get; set; } - - /// - /// Gets or sets the options for the readiness probe. - /// - /// - /// Default port is 2307. - /// - public EndpointOptions ReadinessProbe { get; set; } - - public KubernetesProbesOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/ProbeTags.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/ProbeTags.cs deleted file mode 100644 index 549cd8ddc03..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.Probes/ProbeTags.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.Probes' - -namespace Microsoft.Extensions.Diagnostics.Probes; - -/// -/// Standardized health check tags for probes. -/// -public static class ProbeTags -{ - /// - /// Liveness probe tag. - /// - public const string Liveness = "_probe_liveness"; - - /// - /// Startup probe tag. - /// - public const string Startup = "_probe_startup"; - - /// - /// Readiness probe tag. - /// - public const string Readiness = "_probe_readiness"; -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitor.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitor.cs deleted file mode 100644 index 2de9aeb55f3..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -/// -/// Provides the ability to sample the system for current resource utilization. -/// -public interface IResourceMonitor -{ - /// - /// Gets utilization for the specified time window. - /// - /// A representing the time window for which utilization is requested. - /// The utilization during the time window specified by . - /// - /// when is greater than the maximum window size configured while adding the service to the services collection. - /// - ResourceUtilization GetUtilization(TimeSpan window); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitorBuilder.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitorBuilder.cs deleted file mode 100644 index 4f95dd8af58..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceMonitorBuilder.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -/// -/// Helps building the resource monitoring infrastructure. -/// -public interface IResourceMonitorBuilder -{ - /// - /// Gets the service collection being manipulated by the builder. - /// - IServiceCollection Services { get; } - - /// - /// Adds a resource utilization publisher that gets invoked whenever resource utilization is computed. - /// - /// The publisher's implementation type. - /// The value of the object instance. - IResourceMonitorBuilder AddPublisher() where T : class, IResourceUtilizationPublisher; -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs deleted file mode 100644 index d8391b14bda..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -/// -/// Defines the contract for a resource utilization publisher that gets invoked whenever resource utilization is computed. -/// -public interface IResourceUtilizationPublisher -{ - /// - /// This method is invoked by the monitoring infrastructure whenever resource utilization is computed. - /// - /// A snapshot of the system's current resource utilization. - /// A used to cancel the publish operation. - /// A value task to track the publication operation. - ValueTask PublishAsync(ResourceUtilization utilization, CancellationToken cancellationToken); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringExtensions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringExtensions.cs deleted file mode 100644 index 90a004cdb22..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringExtensions.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Diagnostics.ResourceMonitoring.Internal; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -/// -/// Lets you configure and register resource monitoring components. -/// -public static class ResourceMonitoringExtensions -{ - /// - /// Configures and adds an implementation to a service collection. - /// - /// The dependency injection container to add the monitor to. - /// The value of . - /// is . - public static IServiceCollection AddResourceMonitoring(this IServiceCollection services); - - /// - /// Configures and adds an implementation to a service collection. - /// - /// The dependency injection container to add the monitor to. - /// Delegate to configure . - /// The value of . - /// Either or is . - public static IServiceCollection AddResourceMonitoring(this IServiceCollection services, Action configure); - - /// - /// Configures the resource monitor. - /// - /// The builder instance used to configure the tracker. - /// Delegate to configure . - /// The value of . - /// Either or is . - public static IResourceMonitorBuilder ConfigureMonitor(this IResourceMonitorBuilder builder, Action configure); - - /// - /// Configures the resource monitor. - /// - /// The builder instance used to configure the tracker. - /// The to use for configuring . - /// The value of . - /// Either or is . - public static IResourceMonitorBuilder ConfigureMonitor(this IResourceMonitorBuilder builder, IConfigurationSection section); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringOptions.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringOptions.cs deleted file mode 100644 index 28636727add..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringOptions.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -/// -/// Options to control resource monitoring behavior. -/// -public class ResourceMonitoringOptions -{ - /// - /// Gets or sets the maximum time window for which utilization can be requested. - /// - /// - /// The default value is 5 seconds. - /// - /// - /// This value represents the total amount of time for which the resource monitor tracks utilization - /// information for the system. - /// - [TimeSpan(100, 900000)] - public TimeSpan CollectionWindow { get; set; } - - /// - /// Gets or sets the interval at which a new utilization sample is captured. - /// - /// - /// The default value is 1 second. - /// - /// - /// This value must be <= to . - /// - [TimeSpan(1, 900000)] - public TimeSpan SamplingInterval { get; set; } - - /// - /// Gets or sets the observation window used to calculate the instances pushed to publishers. - /// - /// - /// The default value is 5 seconds. - /// - /// - /// The value needs to be <= to . - /// - [TimeSpan(100, 900000)] - public TimeSpan PublishingWindow { get; set; } - - /// - /// Gets or sets the default interval used for refreshing values reported by . - /// - /// - /// The default value is 5 seconds. - /// - /// - /// This property is Linux-specific and has no effect on other operating systems. - /// This is the time interval for a metric value to fetch resource utilization data from the operating system. - /// - [TimeSpan(100, 900000)] - public TimeSpan CpuConsumptionRefreshInterval { get; set; } - - /// - /// Gets or sets the default interval used for refreshing values reported by . - /// - /// - /// The default value is 5 seconds. - /// - /// - /// This property is Linux-specific and has no effect on other operating systems. - /// This is the time interval for a metric value to fetch resource utilization data from the operating system. - /// - [TimeSpan(100, 900000)] - public TimeSpan MemoryConsumptionRefreshInterval { get; set; } - - /// - /// Gets or sets the list of source IPv4 addresses to track the connections for in telemetry. - /// - /// - /// This property is Windows-specific and has no effect on other operating systems. - /// - [Required] - public ISet SourceIpAddresses { get; set; } - - public ResourceMonitoringOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilization.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilization.cs deleted file mode 100644 index 96ce8c12b51..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Diagnostics.ResourceMonitoring.Internal; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -/// -/// Captures resource usage at a given point in time. -/// -public readonly struct ResourceUtilization -{ - /// - /// Gets the CPU utilization percentage. - /// - /// - /// This percentage is calculated relative to the . - /// - public double CpuUsedPercentage { get; } - - /// - /// Gets the memory utilization percentage. - /// - /// - /// This percentage is calculated relative to the . - /// - public double MemoryUsedPercentage { get; } - - /// - /// Gets the total memory used. - /// - public ulong MemoryUsedInBytes { get; } - - /// - /// Gets the CPU and memory limits defined by the underlying system. - /// - public SystemResources SystemResources { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// CPU utilization. - /// Memory used in bytes (instantaneous). - /// CPU and memory limits. - public ResourceUtilization(double cpuUsedPercentage, ulong memoryUsedInBytes, SystemResources systemResources); -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationCounters.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationCounters.cs deleted file mode 100644 index 892dd07fac6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceUtilizationCounters.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -/// -/// Represents the names of instruments published by this package. -/// -/// -/// These counters are currently only published on Linux. -/// -/// -public static class ResourceUtilizationCounters -{ - /// - /// Gets the CPU consumption of the running application in percentages. - /// - /// - /// The type of an instrument is . - /// - public static string CpuConsumptionPercentage { get; } - - /// - /// Gets the memory consumption of the running application in percentages. - /// - /// - /// The type of an instrument is . - /// - public static string MemoryConsumptionPercentage { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/SystemResources.cs b/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/SystemResources.cs deleted file mode 100644 index cda664176fb..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Diagnostics.ResourceMonitoring/SystemResources.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Assembly 'Microsoft.Extensions.Diagnostics.ResourceMonitoring' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Diagnostics.ResourceMonitoring; - -/// -/// CPU and memory limits defined by the underlying system. -/// -public readonly struct SystemResources -{ - /// - /// Gets the CPU units available in the system. - /// - /// - /// This value corresponds to the number of the guaranteed CPUs as described by Kubernetes CPU request parameter, each 1000 CPU units - /// represent 1 CPU or 1 Core. For example, if the POD is configured with 1500m units as the CPU request, this property will be assigned - /// to 1.5 which means one and a half CPU will be dedicated for the POD. - /// - public double GuaranteedCpuUnits { get; } - - /// - /// Gets the maximum CPU units available in the system. - /// - /// - /// This value corresponds to the number of the maximum CPUs as described by Kubernetes CPU limit parameter, each 1000 CPU units - /// represent 1 CPU or 1 Core. For example, if the is configured with 1500m units as the CPU limit, this property will be assigned - /// to 1.5 which means one and a half CPU will be the maximum CPU available. - /// - public double MaximumCpuUnits { get; } - - /// - /// Gets the memory allocated to the system in bytes. - /// - public ulong GuaranteedMemoryInBytes { get; } - - /// - /// Gets the maximum memory allocated to the system in bytes. - /// - public ulong MaximumMemoryInBytes { get; } - - /// - /// Initializes a new instance of the struct. - /// - /// The CPU units available in the system. - /// The maximum CPU units available in the system. - /// The memory allocated to the system in bytes. - /// The maximum memory allocated to the system in bytes. - public SystemResources(double guaranteedCpuUnits, double maximumCpuUnits, ulong guaranteedMemoryInBytes, ulong maximumMemoryInBytes); -} diff --git a/API/WithDocs/Microsoft.Extensions.EnumStrings/EnumStringsAttribute.cs b/API/WithDocs/Microsoft.Extensions.EnumStrings/EnumStringsAttribute.cs deleted file mode 100644 index fb0db6b2254..00000000000 --- a/API/WithDocs/Microsoft.Extensions.EnumStrings/EnumStringsAttribute.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Assembly 'Microsoft.Extensions.EnumStrings' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.EnumStrings; - -/// -/// Provides information to guide the production of an extension method to efficiently convert an enum value into string form. -/// -[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Enum, AllowMultiple = true)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class EnumStringsAttribute : Attribute -{ - /// - /// Gets the type of the enum to annotate. - /// - /// - /// This is when the attribute is applied directly to an enum type. - /// - public Type? EnumType { get; } - - /// - /// Gets or sets the namespace of the generated class. - /// - /// The default is . - /// - /// If , then the class is generated in the same namespace as the enum. - /// - public string? ExtensionNamespace { get; set; } - - /// - /// Gets or sets the name of the generated class. - /// - /// The default is . - /// - /// If , then the class name is generated by appending Extensions to the enum type name. - /// - public string? ExtensionClassName { get; set; } - - /// - /// Gets or sets the name of the generated extension method. - /// - /// The default is ToInvariantString. - public string ExtensionMethodName { get; set; } - - /// - /// Gets or sets the modifiers to apply to the generated class. - /// - /// The default is internal static. - public string ExtensionClassModifiers { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// - /// Use this overload when directly annotating an enum type. - /// - public EnumStringsAttribute(); - - /// - /// Initializes a new instance of the class. - /// - /// The type of the enum to work with. - /// - /// Use this overload when applying the attribute at the assembly level when working with an enum declared in a - /// different assembly. - /// - /// - /// - /// [assembly: EnumStrings(typeof(System.ConsoleKey))] - /// - /// - public EnumStringsAttribute(Type enumType); -} diff --git a/API/WithDocs/Microsoft.Extensions.Hosting.Testing/FakeHost.cs b/API/WithDocs/Microsoft.Extensions.Hosting.Testing/FakeHost.cs deleted file mode 100644 index 09faafba6b6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Hosting.Testing/FakeHost.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Assembly 'Microsoft.Extensions.Hosting.Testing' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Hosting.Testing; - -/// -/// Unit testing friendly configured host. -/// -public sealed class FakeHost : IHost, IDisposable -{ - /// - /// Gets the program's configured services. - /// - public IServiceProvider Services { get; } - - /// - /// Creates an instance of to configure and build the host. - /// - /// An instance of . - public static IHostBuilder CreateBuilder(); - - /// - /// Creates an instance of to configure and build the host. - /// - /// The options to configure the instance. - /// An instance of . - public static IHostBuilder CreateBuilder(Action configure); - - /// - /// Creates an instance of to configure and build the host. - /// - /// An instance. - /// An instance of . - public static IHostBuilder CreateBuilder(FakeHostOptions options); - - /// - /// Starts the program. - /// - /// Used to abort program start. - /// A that will be completed when the starts. - /// If no cancellation token is given, a new one using is used. - public Task StartAsync(CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Attempts to gracefully stop the program. - /// - /// Used to indicate when stop should no longer be graceful. - /// A that will be completed when the stops. - /// If no cancellation token is given, a new one using is used. - public Task StopAsync(CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Disposes the instance. - /// - /// Tries to gracefully shut down the host. Can be called multiple times. - public void Dispose(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Hosting.Testing/FakeHostOptions.cs b/API/WithDocs/Microsoft.Extensions.Hosting.Testing/FakeHostOptions.cs deleted file mode 100644 index ba68061be1c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Hosting.Testing/FakeHostOptions.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Assembly 'Microsoft.Extensions.Hosting.Testing' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Hosting.Testing; - -/// -/// Options to configure . -/// -public class FakeHostOptions -{ - /// - /// Gets or sets the time limit for the host to start. - /// - /// The default value is 5 seconds. - /// This limit is used if there's no cancellation token. - public TimeSpan StartUpTimeout { get; set; } - - /// - /// Gets or sets the time limit for the host to shut down. - /// - /// The default value is 10 seconds. - /// This limit is used if there's no cancellation token. - public TimeSpan ShutDownTimeout { get; set; } - - /// - /// Gets or sets the time limit for the host to be up. - /// - /// The default is 30 seconds. - /// - /// -1 millisecond means infinite time to live. - /// TimeToLive is not enforced when debugging. - /// - public TimeSpan TimeToLive { get; set; } - - /// - /// Gets or sets a value indicating whether fake logging is configured automatically. - /// - /// - /// The default value is . - /// - public bool FakeLogging { get; set; } - - /// - public bool ValidateScopes { get; set; } - - /// - public bool ValidateOnBuild { get; set; } - - /// - /// Gets or sets a value indicating whether fake redaction is configured automatically. - /// - /// - /// The default value is . - /// - public bool FakeRedaction { get; set; } - - public FakeHostOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs b/API/WithDocs/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs deleted file mode 100644 index 2ebd82e788f..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Assembly 'Microsoft.Extensions.Hosting.Testing' - -using System; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Compliance.Testing; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging.Testing; - -namespace Microsoft.Extensions.Hosting.Testing; - -/// -/// Extension methods supporting host unit testing scenarios. -/// -[Experimental("EXTEXP0009", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class HostingFakesExtensions -{ - /// - /// Starts and immediately stops the service. - /// - /// The tested service. - /// Cancellation token. See . - /// A representing the asynchronous operation. - public static Task StartAndStopAsync(this IHostedService service, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Gets the object that collects log records sent to the fake logger. - /// - /// An instance. - /// No collector exists in the provider. - /// The collector that tracks records logged to fake loggers. - public static FakeLogCollector GetFakeLogCollector(this IHost host); - - /// - /// Gets the object reporting all redactions performed. - /// - /// An instance. - /// No collector exists in the provider. - /// The collector that tracks redactions performed on log messages. - public static FakeRedactionCollector GetFakeRedactionCollector(this IHost host); - - /// - /// Adds an action invoked on each log message. - /// - /// An instance. - /// The action to invoke on each log message. - /// The instance. - public static IHostBuilder AddFakeLoggingOutputSink(this IHostBuilder builder, Action callback); - - /// - /// Exposes for changes via a delegate. - /// - /// An instance. - /// Configures the instance. - /// The instance. - /// Designed to ease host configuration in unit tests by defining common configuration methods. - public static IHostBuilder Configure(this IHostBuilder builder, Action configure); - - public static IHostBuilder ConfigureHostConfiguration(this IHostBuilder builder, params (string key, string value)[] configurations); - - /// - /// Adds a configuration value. - /// - /// An instance. - /// The configuration key. - /// The configuration value. - /// The instance. - public static IHostBuilder ConfigureHostConfiguration(this IHostBuilder builder, string key, string value); - - public static IHostBuilder ConfigureAppConfiguration(this IHostBuilder builder, params (string key, string value)[] configurations); - - /// - /// Adds a configuration value. - /// - /// An instance. - /// The configuration key. - /// The configuration value. - /// The instance. - public static IHostBuilder ConfigureAppConfiguration(this IHostBuilder builder, string key, string value); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientAttribute.cs deleted file mode 100644 index 3b69e65f009..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientAttribute.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Triggers the generation of REST APIs and provides information about the HTTP client and, optionally, the name of the dependency. -/// -/// -/// This attribute triggers the production of REST APIs and provides information about the HTTP client and optionally the name of the dependency. -/// It can only be applied to interfaces and their name must start with an 'I', for example IMyClient. -/// This attribute must receive as a first parameter the HTTP client name to be retrieved from the . -/// Optionally, it may receive a second parameter that will set the dependency name used in generated telemetry. If this value is not set, it will use the name of the interface -/// without the leading 'I'. -/// If the interface name ends in 'Client' or 'Api', the dependency name will exclude that. Example: IMyDependencyClient would result in dependency name MyDependency. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// } -/// -/// -[AttributeUsage(AttributeTargets.Interface)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class AutoClientAttribute : Attribute -{ - /// - /// Gets the HTTP client name of the API. - /// - public string HttpClientName { get; } - - /// - /// Gets the custom dependency name of the API. This is used in generated telemetry. - /// - /// - /// If this value is not set, then for the dependency name it will use the name of the interface without the leading 'I' with trimming 'Client' or 'Api' at the end. - /// - public string? CustomDependencyName { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The name of the HTTP client to be retrieved from . - public AutoClientAttribute(string httpClientName); - - /// - /// Initializes a new instance of the class. - /// - /// The name of the HTTP client to be retrieved from . - /// The dependency name override to use. - public AutoClientAttribute(string httpClientName, string customDependencyName); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientException.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientException.cs deleted file mode 100644 index 73701e11407..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientException.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// The exception that's thrown when REST API requests aren't successful. -/// -/// -/// This exception is thrown whenever a REST API call returns a non-successful status code. It contains the status code -/// and the HTTP content returned by the dependency, so that the user can handle exceptions accordingly. -/// -/// -/// -/// try -/// { -/// await _myClient.SendRequest(); -/// } -/// catch (AutoClientException ex) when (ex.StatusCode == 403) -/// { -/// // Handle forbidden scenario -/// } -/// -/// -public class AutoClientException : Exception -{ - /// - /// Gets the HTTP response. - /// - public AutoClientHttpError? HttpError { get; } - - /// - /// Gets the initial path of the HTTP request. - /// - public string Path { get; } - - /// - /// Gets the HTTP status code. - /// - public int? StatusCode { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The exception message. - /// The path of the request. - /// The HTTP error details. - public AutoClientException(string message, string path, AutoClientHttpError? error = null); - - /// - /// Initializes a new instance of the class. - /// - /// The exception message. - /// The exception that is the cause of the current exception. - /// The path of the request. - /// The HTTP error details. - public AutoClientException(string message, Exception innerException, string path, AutoClientHttpError? error = null); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientHttpError.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientHttpError.cs deleted file mode 100644 index 4673e2c5aba..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientHttpError.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System.Collections.Generic; -using System.Diagnostics; -using System.Net.Http; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Holds details about an HTTP error. -/// -/// -/// When a REST API client fails, it will throw a . -/// This exception contains a instance that holds details like content, headers and status code. -/// -public class AutoClientHttpError -{ - /// - /// Gets the HTTP status code returned in the response. - /// - public int StatusCode { get; } - - /// - /// Gets the HTTP response headers. - /// - public IReadOnlyDictionary ResponseHeaders { get; } - - /// - /// Gets the raw string content returned in the response. - /// - public string RawContent { get; } - - /// - /// Gets the HTTP error reason. - /// - public string? ReasonPhrase { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The HTTP status code of the response. - /// The response headers. - /// The raw string content of the response. - /// The HTTP error reason. - public AutoClientHttpError(int statusCode, IReadOnlyDictionary responseHeaders, string rawContent, string? reasonPhrase); - - /// - /// Creates an instance of based on an . - /// - /// The response to be used. - /// Cancellation token used on asynchronous calls. - /// An instance of . - public static Task CreateAsync(HttpResponseMessage response, CancellationToken cancellationToken); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptions.cs deleted file mode 100644 index 75f452b1aa1..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using System.Text.Json; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Options to configure generated REST API clients. -/// -/// -/// This options class is used to configure generated REST API clients. -/// -/// -/// -/// services.AddMyDependencyClient(options => -/// { -/// options.JsonSerializerOptions = new MyJsonSerializerOptions(); -/// }); -/// -/// -public class AutoClientOptions -{ - /// - /// Gets or sets JSON payload serialization options. - /// - [Required] - public JsonSerializerOptions JsonSerializerOptions { get; set; } - - public AutoClientOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptionsValidator.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptionsValidator.cs deleted file mode 100644 index 78a4fb65959..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/AutoClientOptionsValidator.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System.CodeDom.Compiler; -using System.ComponentModel; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Validator for . -/// -/// -/// This type is not intended to be directly invoked by application code. -/// It's intended to be invoked by generated code. -/// -[EditorBrowsable(EditorBrowsableState.Never)] -[OptionsValidator] -public sealed class AutoClientOptionsValidator : IValidateOptions -{ - /// - /// Validates a specific named options instance (or all when is ). - /// - /// The name of the options instance being validated. - /// The options instance. - /// Validation result. - [GeneratedCode("Microsoft.Extensions.Options.SourceGeneration", "8.0.8.46416")] - public ValidateOptionsResult Validate(string? name, AutoClientOptions options); - - public AutoClientOptionsValidator(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/BodyAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/BodyAttribute.cs deleted file mode 100644 index 244438462e9..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/BodyAttribute.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines the body for the API request. -/// -/// -/// Marks a method parameter as the body for the request. -/// This attribute cannot be used with a GET or HEAD request. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Post("/api/users")] -/// Task<User> PostUserAsync([Body] User user, CancellationToken cancellationToken); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class BodyAttribute : Attribute -{ - /// - /// Gets the body content type. - /// - public BodyContentType ContentType { get; } - - /// - /// Initializes a new instance of the class. - /// - /// - /// This defaults to a body content type of . - /// - public BodyAttribute(); - - /// - /// Initializes a new instance of the class. - /// - /// The content type to be used on the request content. - public BodyAttribute(BodyContentType contentType); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/BodyContentType.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/BodyContentType.cs deleted file mode 100644 index d348cf0907e..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/BodyContentType.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines the types of encoding possible for request bodies. -/// -public enum BodyContentType -{ - /// - /// Represents the "application/json" content type. - /// - /// - /// With this content type, the parameter value is serialized to JSON before sending it in the request. - /// - ApplicationJson = 0, - /// - /// Represents the "text/plain" content type. - /// - /// - /// With this content type, .ToString() is called on the parameter value before sending it in the request. - /// - TextPlain = 1 -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs deleted file mode 100644 index b4742c61112..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines an API DELETE method. -/// -/// -/// Marks a method within an interface annotated with as an API DELETE method. -/// -/// The return type of an API method must be a Task<T>. -/// If T is a and the dependency returns "text/plain" content type, the result will be the raw content of the response. Otherwise, it will be deserialized from JSON. -/// If T is of type , the result will be the actual response message without further processing. -/// -/// If you provide an extra parameter to the method, you should use it between curly braces in the URL to make it a URL parameter. For example: /api/users/{userId}. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Delete("/api/users/{userId}")] -/// Task<bool> DeleteUserAsync(string userId, CancellationToken cancellationToken = default); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -public sealed class DeleteAttribute : Attribute -{ - /// - /// Gets the path of the request. - /// - public string Path { get; } - - /// - /// Gets or sets the name to use for this request within telemetry. - /// - /// - /// If this property is not provided, the request name is obtained from the method name. - /// If the method name ends in 'Async', the request name will exclude that. - /// For example, if the method is called DeleteUserAsync, the request name, by default, will be DeleteUser. - /// - /// - /// - /// [AutoClient("MyClient")] - /// interface IMyDependencyClient - /// { - /// [Delete("/api/users/{userId}", RequestName = "RemoveUsers")] - /// Task<bool> DeleteUserAsync(string userId, CancellationToken cancellationToken = default); - /// } - /// - /// - public string? RequestName { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// The path of the request. - public DeleteAttribute(string path); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs deleted file mode 100644 index a40a6fa7878..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines an API GET method. -/// -/// -/// Marks a method within an interface annotated with as an API GET method. -/// -/// The return type of an API method must be a Task<T>. -/// If T is a and the dependency returns "text/plain" content type, the result will be the raw content of the response. Otherwise, it will be deserialized from JSON. -/// If T is of type , the result will be the actual response message without further processing. -/// -/// If you provide an extra parameter to the method, you should use it between curly braces in the URL to make it an URL parameter. For example: /api/users/{userId}. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Get("/api/users/{userId}")] -/// Task<User> GetUserAsync(string userId, [Query] string filter, CancellationToken cancellationToken); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -public sealed class GetAttribute : Attribute -{ - /// - /// Gets the path of the request. - /// - public string Path { get; } - - /// - /// Gets or sets the name to use for this request within telemetry. - /// - /// - /// If this property is not provided, the request name is obtained from the method name. - /// If the method name ends in 'Async', the request name will exclude that. - /// For example, if the method is called GetUsersAsync, the request name, by default, will be GetUsers. - /// - /// - /// - /// [AutoClient("MyClient")] - /// interface IMyDependencyClient - /// { - /// [Get("/api/users", RequestName = "ObtainUsers")] - /// Task<string> GetUsersAsync(CancellationToken cancellationToken = default); - /// } - /// - /// - public string? RequestName { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// The path of the request. - public GetAttribute(string path); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs deleted file mode 100644 index cbfdc3ccaa6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines an API HEAD method. -/// -/// -/// Marks a method within an interface annotated with as an API HEAD method. -/// -/// The return type of an API method must be a Task<T>. -/// If T is a and the dependency returns "text/plain" content type, the result will be the raw content of the response. Otherwise, it will be deserialized from JSON. -/// If T is of type , the result will be the actual response message without further processing. -/// -/// If you provide an extra parameter to the method, you should use it between curly braces in the URL to make it an URL parameter. For example: /api/users/{userId}. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Head("/api/users/{userId}")] -/// Task<UserHead> HeadUserAsync(string userId, CancellationToken cancellationToken); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -public sealed class HeadAttribute : Attribute -{ - /// - /// Gets the path of the request. - /// - public string Path { get; } - - /// - /// Gets or sets the name to use for this request within telemetry. - /// - /// - /// If this property is not provided, the request name is obtained from the method name. - /// If the method name ends in 'Async', the request name will exclude that. - /// For example, if the method is called HeadUserAsync, the request name, by default, will be HeadUser. - /// - /// - /// - /// [AutoClient("MyClient")] - /// interface IMyDependencyClient - /// { - /// [Head("/api/users/{userId}", RequestName = "Head")] - /// Task<UserHead> HeadUserAsync(string userId, CancellationToken cancellationToken); - /// } - /// - /// - public string? RequestName { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// The path of the request. - public HeadAttribute(string path); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/HeaderAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/HeaderAttribute.cs deleted file mode 100644 index 80506f5bf90..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/HeaderAttribute.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines a header to be used in the API request. -/// -/// -/// Marks a method parameter as a header to insert in the request. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Get("/api/users")] -/// Task<string> GetUsersAsync([Header("X-UserName")] string userName, CancellationToken cancellationToken); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class HeaderAttribute : Attribute -{ - /// - /// Gets the name of the header. - /// - public string Header { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The name of the header. - public HeaderAttribute(string header); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs deleted file mode 100644 index 932b7e15bc5..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines an API OPTIONS method. -/// -/// -/// Marks a method within an interface annotated with as an API OPTIONS method. -/// -/// The return type of an API method must be a Task<T>. -/// If T is a and the dependency returns "text/plain" content type, the result will be the raw content of the response. Otherwise, it will be deserialized from JSON. -/// If T is of type , the result will be the actual response message without further processing. -/// -/// If you provide an extra parameter to the method, you should use it between curly braces in the URL to make it an URL parameter. For example: /api/users/{userId}. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Options("/api/users/{userId}")] -/// Task<UserOptions> UserOptionsAsync(string userId, CancellationToken cancellationToken); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -public sealed class OptionsAttribute : Attribute -{ - /// - /// Gets the path of the request. - /// - public string Path { get; } - - /// - /// Gets or sets the name to use for this request within telemetry. - /// - /// - /// If this property is not provided, the request name is obtained from the method name. - /// If the method name ends in 'Async', the request name will exclude that. - /// For example, if the method is called UserOptionsAsync, the request name, by default, will be UserOptions. - /// - /// - /// - /// [AutoClient("MyClient")] - /// interface IMyDependencyClient - /// { - /// [Options("/api/users/{userId}", RequestName = "Users")] - /// Task<UserOptions> UserOptionsAsync(string userId, CancellationToken cancellationToken); - /// } - /// - /// - public string? RequestName { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// The path of the request. - public OptionsAttribute(string path); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs deleted file mode 100644 index 3b0da727f38..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines an API PATCH method. -/// -/// -/// Marks a method within an interface annotated with as an API PATCH method. -/// -/// The return type of an API method must be a Task<T>. -/// If T is a and the dependency returns "text/plain" content type, the result will be the raw content of the response. Otherwise, it will be deserialized from JSON. -/// If T is of type , the result will be the actual response message without further processing. -/// -/// If you provide an extra parameter to the method, you should use it between curly braces in the URL to make it an URL parameter. For example: /api/users/{userId}. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Patch("/api/users/{userId}")] -/// Task<User> UpdateUserAsync(string userId, CancellationToken cancellationToken); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -public sealed class PatchAttribute : Attribute -{ - /// - /// Gets the path of the request. - /// - public string Path { get; } - - /// - /// Gets or sets the name to use for this request within telemetry. - /// - /// - /// If this property is not provided, the request name is obtained from the method name. - /// If the method name ends in 'Async', the request name will exclude that. - /// For example, if the method is called UpdateUserAsync, the request name, by default, will be UpdateUser. - /// - /// - /// - /// [AutoClient("MyClient")] - /// interface IMyDependencyClient - /// { - /// [Patch("/api/users/{userId}", RequestName = "PatchUser")] - /// Task<User> UpdateUserAsync(string userId, CancellationToken cancellationToken); - /// } - /// - /// - public string? RequestName { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// The path of the request. - public PatchAttribute(string path); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs deleted file mode 100644 index 1172a8e6766..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines an API POST method. -/// -/// -/// Marks a method within an interface annotated with as an API POST method. -/// -/// The return type of an API method must be a Task<T>. -/// If T is a and the dependency returns "text/plain" content type, the result will be the raw content of the response. Otherwise, it will be deserialized from JSON. -/// If T is of type , the result will be the actual response message without further processing. -/// -/// If you provide an extra parameter to the method, you should use it between curly braces in the URL to make it an URL parameter. For example: /api/users/{userId}. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Post("/api/users/{userId}")] -/// Task<User> AddUserAsync(string userId, CancellationToken cancellationToken); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -public sealed class PostAttribute : Attribute -{ - /// - /// Gets the path of the request. - /// - public string Path { get; } - - /// - /// Gets or sets the name to use for this request within telemetry. - /// - /// - /// If this property is not provided, the request name is obtained from the method name. - /// If the method name ends in 'Async', the request name will exclude that. - /// For example, if the method is called AddUserAsync, the request name, by default, will be AddUser. - /// - /// - /// - /// [AutoClient("MyClient")] - /// interface IMyDependencyClient - /// { - /// [Post("/api/users/{userId}", RequestName = "AddUser")] - /// Task<User> AddUserAsync(string userId, CancellationToken cancellationToken); - /// } - /// - /// - public string? RequestName { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// The path of the request. - public PostAttribute(string path); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs deleted file mode 100644 index 11ba0078554..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines an API PUT method. -/// -/// -/// Marks a method within an interface annotated with as an API PUT method. -/// -/// The return type of an API method must be a Task<T>. -/// If T is a and the dependency returns "text/plain" content type, the result will be the raw content of the response. Otherwise, it will be deserialized from JSON. -/// If T is of type , the result will be the actual response message without further processing. -/// -/// If you provide an extra parameter to the method, you should use it between curly braces in the URL to make it an URL parameter. For example: /api/users/{userId}. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Put("/api/users/{userId}")] -/// Task<User> InsertUserAsync(string userId, CancellationToken cancellationToken); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method)] -public sealed class PutAttribute : Attribute -{ - /// - /// Gets the path of the request. - /// - public string Path { get; } - - /// - /// Gets or sets the name to use for this request within telemetry. - /// - /// - /// If this property is not provided, the request name is obtained from the method name. - /// If the method name ends in 'Async', the request name will exclude that. - /// For example, if the method is called InsertUserAsync, the request name, by default, will be InsertUser. - /// - /// - /// - /// [AutoClient("MyClient")] - /// interface IMyDependencyClient - /// { - /// [Put("/api/users/{userId}", RequestName = "InsertUser")] - /// Task<User> InsertUserAsync(string userId, CancellationToken cancellationToken); - /// } - /// - /// - public string? RequestName { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// The path of the request. - public PutAttribute(string path); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/QueryAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/QueryAttribute.cs deleted file mode 100644 index 2342ef8675c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/QueryAttribute.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines a query string to be used in the API request. -/// -/// -/// Marks a method parameter as a query string for the request. -/// -/// -/// -/// [AutoClient("MyClient")] -/// interface IMyDependencyClient -/// { -/// [Get("/api/users")] -/// Task<string> GetUsersAsync([Query] string userName, [Query("id")] string userId, CancellationToken cancellationToken = default); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class QueryAttribute : Attribute -{ - /// - /// Gets the query key, if set. - /// - public string? Key { get; } - - /// - /// Initializes a new instance of the class. - /// - /// - /// This overload uses the name of the associated method parameter as the query string key. - /// - public QueryAttribute(); - - /// - /// Initializes a new instance of the class. - /// - /// The query key to use in the request. - public QueryAttribute(string key); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/StaticHeaderAttribute.cs b/API/WithDocs/Microsoft.Extensions.Http.AutoClient/StaticHeaderAttribute.cs deleted file mode 100644 index ccee80351cf..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.AutoClient/StaticHeaderAttribute.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.AutoClient' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.AutoClient; - -/// -/// Defines a static header to be sent on every API request. -/// -/// -/// Injects a static header to be sent with every request. When this attribute is applied -/// to an interface, then it impacts every method described by the interface. Otherwise, it only -/// affects the method where it is applied. -/// -/// -/// -/// [AutoClient("MyClient")] -/// [StaticHeader("X-MyHeader", "MyHeaderValue")] -/// interface IMyDependencyClient -/// { -/// [Get("/api/users")] -/// [StaticHeader("X-GetUsersHeader", "Value")] -/// public Task<Users> GetUsers(CancellationToken cancellationToken = default); -/// } -/// -/// -[AttributeUsage(AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = true)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class StaticHeaderAttribute : Attribute -{ - /// - /// Gets the name of the header. - /// - public string Header { get; } - - /// - /// Gets the value of the header. - /// - public string Value { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The name of the header. - /// The value of the header. - public StaticHeaderAttribute(string header, string value); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/HttpRouteParameterRedactionMode.cs b/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/HttpRouteParameterRedactionMode.cs deleted file mode 100644 index 12787a3c200..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/HttpRouteParameterRedactionMode.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Http.Diagnostics; - -/// -/// Strategy to decide how HTTP request path parameters are redacted. -/// -public enum HttpRouteParameterRedactionMode -{ - /// - /// All parameters are considered as sensitive and are required to be explicitly annotated with a data classification. - /// - /// - /// Unannotated parameters are always redacted with the erasing redactor. - /// - Strict = 0, - /// - /// All parameters are considered as non-sensitive and included as-is by default. - /// - /// - /// Only parameters explicitly annotated with a data classification are redacted. - /// - Loose = 1, - /// - /// Route parameters are not redacted regardless of the presence of data classification annotations. - /// - None = 2 -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/IDownstreamDependencyMetadata.cs b/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/IDownstreamDependencyMetadata.cs deleted file mode 100644 index 068b1c89644..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/IDownstreamDependencyMetadata.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Collections.Generic; - -namespace Microsoft.Extensions.Http.Diagnostics; - -/// -/// Interface for passing dependency metadata. -/// -public interface IDownstreamDependencyMetadata -{ - /// - /// Gets the name of the dependent service. - /// - string DependencyName { get; } - - /// - /// Gets the list of host name suffixes that can uniquely identify a host as this dependency. - /// - ISet UniqueHostNameSuffixes { get; } - - /// - /// Gets the list of all metadata for all routes to the dependency service. - /// - ISet RequestMetadata { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/IOutgoingRequestContext.cs b/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/IOutgoingRequestContext.cs deleted file mode 100644 index 00929c7c4cb..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/IOutgoingRequestContext.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Http.Diagnostics; - -/// -/// Interface to represent outgoing request context. -/// -public interface IOutgoingRequestContext -{ - /// - /// Gets metadata for outgoing requests to be used for telemetry purposes. - /// - /// request metadata. - RequestMetadata? RequestMetadata { get; } - - /// - /// Sets metadata for outgoing requests to be used for telemetry purposes. - /// - /// Metadata for the request. - void SetRequestMetadata(RequestMetadata metadata); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/RequestMetadata.cs b/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/RequestMetadata.cs deleted file mode 100644 index b8e6ee4f6e6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/RequestMetadata.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Diagnostics; - -/// -/// Holds request metadata for use by the telemetry system. -/// -public class RequestMetadata -{ - /// - /// Gets or sets request's route template. - /// - /// - /// Request Route is used for multiple use cases. - /// - For outgoing request metrics, it is used as the request name dimension (if RequestName is not provided). - /// - For Logs and traces, it is used to identify sensitive parameters from the path and redact them in the exported path, so sensitive data leakage can be avoided. - /// If you are using redaction the template should be accurate for the request else redaction won't be applied to sensitive parameters. - /// e.g. A template would look something like /v1/users/{userId}/chats/{chatId}/messages. The sensitive parameter names should match exactly as provided - /// in configuration for outgoing tracing and outgoing logging autocollectors for parameters to be redacted. - /// - public string RequestRoute { get; set; } - - /// - /// Gets or sets name to be logged for the request. - /// - /// - /// RequestName is used in the following manner by outgoing http request auto collectors: - /// - For outgoing request metrics: RequestName is used as the request name dimension if present, if not provided RequestRoute value would be used instead. - /// - For outgoing request traces: It is used as the Display name for the activity i.e. When looking at the E2E trace flow this name is used in the Tree view of traces. - /// if not provided RequestRoute value would be used instead. - /// - For outgoing request logs: When present it would be added as an additional tag to logs. - /// - public string RequestName { get; set; } - - /// - /// Gets or sets name of the dependency to which the outgoing request is being made. - /// - /// - /// DependencyName is used in the following manner by outgoing http request auto collectors: - /// - For outgoing request metrics: This is added as dependency name dimension so metrics can be pivoted based on the dependency. - /// - For outgoing request traces and logs: This is added as dependency name dimension for better diagnosability. - /// - public string DependencyName { get; set; } - - /// - /// Gets or sets the http method type of the request. - /// - /// - /// Supported types are GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE. - /// - public string MethodType { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// - /// This constructor initializes to GET, and all other properties to "unknown". - /// - public RequestMetadata(); - - /// - /// Initializes a new instance of the class. - /// - /// Http method type of the request. - /// Route of the request. - /// Name of the request. - /// - /// The property is initialized to "unknown". - /// - /// Any argument is . - public RequestMetadata(string methodType, string requestRoute, string requestName = "unknown"); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryConstants.cs b/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryConstants.cs deleted file mode 100644 index 2394f2326a9..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryConstants.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -namespace Microsoft.Extensions.Http.Diagnostics; - -/// -/// Common telemetry constants used by various telemetry libraries. -/// -public static class TelemetryConstants -{ - /// - /// Request metadata key that is used when storing request metadata object. - /// - public const string RequestMetadataKey = "R9-RequestMetadata"; - - /// - /// Represents the placeholder text for an unknown request name or dependency name in telemetry. - /// - public const string Unknown = "unknown"; - - /// - /// Represents the placeholder text used for redacted data where needed. - /// - public const string Redacted = "REDACTED"; - - /// - /// Represents the header for client application name, sent on an outgoing HTTP call. - /// - public const string ClientApplicationNameHeader = "X-ClientApplication"; - - /// - /// Represents the header for server application name, sent on a HTTP request. - /// - public const string ServerApplicationNameHeader = "X-ServerApplication"; -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryExtensions.cs deleted file mode 100644 index 2c97e075b28..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Diagnostics/TelemetryExtensions.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System.Net; -using System.Net.Http; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Diagnostics; - -/// -/// Extensions for telemetry utilities. -/// -public static class TelemetryExtensions -{ - /// - /// Sets metadata for outgoing requests to be used for telemetry purposes. - /// - /// object. - /// Metadata for the request. - public static void SetRequestMetadata(this HttpWebRequest request, RequestMetadata metadata); - - /// - /// Sets metadata for outgoing requests to be used for telemetry purposes. - /// - /// object. - /// Metadata for the request. - public static void SetRequestMetadata(this HttpRequestMessage request, RequestMetadata metadata); - - /// - /// Gets metadata for outgoing requests to be used for telemetry purposes. - /// - /// object. - /// Request metadata. - public static RequestMetadata? GetRequestMetadata(this HttpWebRequest request); - - /// - /// Gets metadata for outgoing requests to be used for telemetry purposes. - /// - /// object. - /// Request metadata or . - public static RequestMetadata? GetRequestMetadata(this HttpRequestMessage request); - - /// - /// Adds dependency metadata. - /// - /// object instance. - /// DownstreamDependencyMetadata object to add. - /// object for chaining. - public static IServiceCollection AddDownstreamDependencyMetadata(this IServiceCollection services, IDownstreamDependencyMetadata downstreamDependencyMetadata); - - /// - /// Adds dependency metadata. - /// - /// instance to be registered. - /// object instance. - /// object for chaining. - public static IServiceCollection AddDownstreamDependencyMetadata(this IServiceCollection services) where T : class, IDownstreamDependencyMetadata; -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryExtensions.cs deleted file mode 100644 index ba2d5fc5e85..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryExtensions.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Http.Logging; - -namespace Microsoft.Extensions.Http.Latency; - -/// -/// Extension methods to add http client latency telemetry. -/// -public static class HttpClientLatencyTelemetryExtensions -{ - /// - /// Adds a to collect latency information and enrich outgoing request log for all http clients. - /// - /// - /// This extension configures latency information collection globally for all http clients. - /// - /// The . - /// - /// instance for chaining. - /// - public static IServiceCollection AddDefaultHttpClientLatencyTelemetry(this IServiceCollection services); - - /// - /// Adds a to collect latency information and enrich outgoing request log for all http clients. - /// - /// - /// This extension configures outgoing request logs auto collection globally for all http clients. - /// - /// The . - /// The to use for configuring . - /// - /// instance for chaining. - /// - public static IServiceCollection AddDefaultHttpClientLatencyTelemetry(this IServiceCollection services, IConfigurationSection section); - - /// - /// Adds a to collect latency information and enrich outgoing request log for all http clients. - /// - /// - /// This extension configures outgoing request logs auto collection globally for all http clients. - /// - /// The . - /// The delegate to configure with. - /// - /// instance for chaining. - /// - public static IServiceCollection AddDefaultHttpClientLatencyTelemetry(this IServiceCollection services, Action configure); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryOptions.cs deleted file mode 100644 index c16c227582d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Latency/HttpClientLatencyTelemetryOptions.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Latency; - -/// -/// Options to configure the http client latency telemetry. -/// -public class HttpClientLatencyTelemetryOptions -{ - /// - /// Gets or sets a value indicating whether to collect detailed latency breakdown of call. - /// - /// - /// The default value is . - /// - /// - /// Detailed breakdowns add checkpoints for HTTP operations, such as connection open and request headers sent. - /// - public bool EnableDetailedLatencyBreakdown { get; set; } - - public HttpClientLatencyTelemetryOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingExtensions.cs deleted file mode 100644 index d11eb55cf43..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingExtensions.cs +++ /dev/null @@ -1,105 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Logging; - -/// -/// Extension methods to register HTTP client logging feature. -/// -public static class HttpClientLoggingExtensions -{ - /// - /// Adds an to emit logs for outgoing requests for all HTTP clients created with . - /// - /// The . - /// - /// instance for chaining. - /// - /// - /// All other loggers are removed - including the default one, registered via . - /// - /// Argument is . - public static IServiceCollection AddDefaultHttpClientLogging(this IServiceCollection services); - - /// - /// Adds an to emit logs for outgoing requests for all HTTP clients created with . - /// - /// The . - /// The to use for configuring . - /// - /// instance for chaining. - /// - /// - /// All other loggers are removed - including the default one, registered via . - /// - /// Any of the arguments is . - public static IServiceCollection AddDefaultHttpClientLogging(this IServiceCollection services, IConfigurationSection section); - - /// - /// Adds an to emit logs for outgoing requests for all HTTP clients created with . - /// - /// The . - /// The delegate to configure with. - /// - /// instance for chaining. - /// - /// - /// All other loggers are removed - including the default one, registered via . - /// - /// Any of the arguments is . - public static IServiceCollection AddDefaultHttpClientLogging(this IServiceCollection services, Action configure); - - /// - /// Adds an to emit logs for outgoing requests for a named . - /// - /// The . - /// - /// An that can be used to configure the client. - /// - /// - /// All other loggers are removed - including the default one, registered via . - /// - /// Argument is . - public static IHttpClientBuilder AddHttpClientLogging(this IHttpClientBuilder builder); - - /// - /// Adds an to emit logs for outgoing requests for a named . - /// - /// The . - /// The to use for configuring . - /// - /// An that can be used to configure the client. - /// - /// - /// All other loggers are removed - including the default one, registered via . - /// - /// Any of the arguments is . - public static IHttpClientBuilder AddHttpClientLogging(this IHttpClientBuilder builder, IConfigurationSection section); - - /// - /// Adds an to emit logs for outgoing requests for a named . - /// - /// The . - /// The delegate to configure with. - /// - /// An that can be used to configure the client. - /// - /// - /// All other loggers are removed - including the default one, registered via . - /// - /// Any of the arguments is . - public static IHttpClientBuilder AddHttpClientLogging(this IHttpClientBuilder builder, Action configure); - - /// - /// Adds an enricher instance of to the to enrich logs. - /// - /// Type of enricher. - /// The to add the instance of to. - /// The so that additional calls can be chained. - public static IServiceCollection AddHttpClientLogEnricher(this IServiceCollection services) where T : class, IHttpClientLogEnricher; -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingTagNames.cs b/API/WithDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingTagNames.cs deleted file mode 100644 index 4540baf160b..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Logging/HttpClientLoggingTagNames.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Logging; - -/// -/// Constants used for HTTP client logging tags. -/// -public static class HttpClientLoggingTagNames -{ - /// - /// HTTP Request duration. - /// - public const string Duration = "duration"; - - /// - /// HTTP Host. - /// - public const string Host = "httpHost"; - - /// - /// HTTP Method. - /// - public const string Method = "httpMethod"; - - /// - /// HTTP Path. - /// - public const string Path = "httpPath"; - - /// - /// HTTP Request Body. - /// - public const string RequestBody = "httpRequestBody"; - - /// - /// HTTP Response Body. - /// - public const string ResponseBody = "httpResponseBody"; - - /// - /// HTTP Request Headers prefix. - /// - public const string RequestHeaderPrefix = "httpRequestHeader_"; - - /// - /// HTTP Response Headers prefix. - /// - public const string ResponseHeaderPrefix = "httpResponseHeader_"; - - /// - /// HTTP Status Code. - /// - public const string StatusCode = "httpStatusCode"; - - /// - /// Gets a list of all tag names. - /// - /// A read-only of all tag names. - public static IReadOnlyList TagNames { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Logging/IHttpClientLogEnricher.cs b/API/WithDocs/Microsoft.Extensions.Http.Logging/IHttpClientLogEnricher.cs deleted file mode 100644 index 7fa93705f18..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Logging/IHttpClientLogEnricher.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System; -using System.Net.Http; -using Microsoft.Extensions.Diagnostics.Enrichment; - -namespace Microsoft.Extensions.Http.Logging; - -/// -/// Interface for implementing log enrichers for HTTP client requests. -/// -public interface IHttpClientLogEnricher -{ - /// - /// Enrich HTTP client request logs. - /// - /// Tag collector to add tags to. - /// object associated with the outgoing HTTP request. - /// object associated with the outgoing HTTP request. - /// An optional that was thrown within the outgoing HTTP request processing. - /// - /// Please be aware that depending on the result of the HTTP request - /// the and parameters may be . - /// - void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Logging/LoggingOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Logging/LoggingOptions.cs deleted file mode 100644 index c0828e3cc1f..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Logging/LoggingOptions.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Http.Diagnostics; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Http.Logging; - -/// -/// Options to configure HTTP client requests logging. -/// -public class LoggingOptions -{ - /// - /// Gets or sets a value indicating whether the request is logged additionally before any further processing. - /// - /// - /// The default value is . - /// - /// - /// When enabled, two entries will be logged for each incoming request - one for request and one for response, if available. - /// When disabled, only one entry will be logged for each incoming request, which includes both request and response data. - /// - public bool LogRequestStart { get; set; } - - /// - /// Gets or sets a value indicating whether the HTTP request and response body are logged. - /// - /// - /// The default value is . - /// - /// - /// Avoid enabling this option in a production environment as it might lead to leaking privacy information. - /// - public bool LogBody { get; set; } - - /// - /// Gets or sets the maximum number of bytes of the request or response body to read. - /// - /// - /// The default value is ≈ 32K. - /// - /// - /// The number should ideally be below 85000 bytes to not be allocated on the large object heap. - /// - [Range(1, 1572864)] - public int BodySizeLimit { get; set; } - - /// - /// Gets or sets the maximum amount of time to wait for the request or response body to be read. - /// - /// - /// The default value is 1 second. - /// - /// - /// The value should be in the range of 1 millisecond to 1 minute. - /// - [TimeSpan(1, 3600000)] - public TimeSpan BodyReadTimeout { get; set; } - - /// - /// Gets or sets the list of HTTP request content types which are considered text and thus possible to serialize. - /// - [Required] - public ISet RequestBodyContentTypes { get; set; } - - /// - /// Gets or sets the list of HTTP response content types which are considered text and thus possible to serialize. - /// - [Required] - public ISet ResponseBodyContentTypes { get; set; } - - /// - /// Gets or sets the set of HTTP request headers to log and their respective data classes to use for redaction. - /// - /// - /// The default value is . - /// - /// - /// If empty, no HTTP request headers will be logged. - /// If the data class is , no redaction will be done. - /// - [Required] - public IDictionary RequestHeadersDataClasses { get; set; } - - /// - /// Gets or sets the set of HTTP response headers to log and their respective data classes to use for redaction. - /// - /// - /// The default value is . - /// - /// - /// If the data class is , no redaction will be done. - /// If empty, no HTTP response headers will be logged. - /// - [Required] - public IDictionary ResponseHeadersDataClasses { get; set; } - - /// - /// Gets or sets a value indicating how the outgoing HTTP request path should be logged. - /// - /// - /// The default value is . - /// - /// - /// This option is applied only when the option is not set to , - /// otherwise this setting is ignored and the unredacted HTTP request path is logged. - /// - public OutgoingPathLoggingMode RequestPathLoggingMode { get; set; } - - /// - /// Gets or sets a value indicating how outgoing HTTP request path parameters should be redacted. - /// - /// - /// The default value is . - /// - public HttpRouteParameterRedactionMode RequestPathParameterRedactionMode { get; set; } - - /// - /// Gets or sets the route parameters to redact with their corresponding data classes to apply appropriate redaction. - /// - [Required] - public IDictionary RouteParameterDataClasses { get; set; } - - public LoggingOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Logging/OutgoingPathLoggingMode.cs b/API/WithDocs/Microsoft.Extensions.Http.Logging/OutgoingPathLoggingMode.cs deleted file mode 100644 index 3dd15a29a4c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Logging/OutgoingPathLoggingMode.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Telemetry' - -namespace Microsoft.Extensions.Http.Logging; - -/// -/// Strategy to decide how outgoing HTTP path is logged. -/// -public enum OutgoingPathLoggingMode -{ - /// - /// HTTP path is formatted, for example in a form of /foo/bar/redactedUserId. - /// - Formatted = 0, - /// - /// HTTP path is not formatted, route parameters logged in curly braces, for example in a form of /foo/bar/{userId}. - /// - Structured = 1 -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/ContextExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/ContextExtensions.cs deleted file mode 100644 index c122c5f133d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/ContextExtensions.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Diagnostics.CodeAnalysis; -using System.Net.Http; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience.FaultInjection; - -/// -/// Provides extension methods for . -/// -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class ContextExtensions -{ - /// - /// Associates the given instance to the . - /// - /// The context instance. - /// The calling request. - /// - /// The so that additional calls can be chained. - /// - public static Context WithCallingRequestMessage(this Context context, HttpRequestMessage request); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpClientFaultInjectionExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpClientFaultInjectionExtensions.cs deleted file mode 100644 index adb6456432e..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpClientFaultInjectionExtensions.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Resilience.FaultInjection; - -namespace Microsoft.Extensions.Http.Resilience.FaultInjection; - -/// -/// Provides extension methods for Fault-Injection library specifically for HttpClient usages. -/// -public static class HttpClientFaultInjectionExtensions -{ - /// - /// Registers default implementations for , and ; - /// adds fault-injection policies to all . - /// - /// The services collection. - /// - /// The so that additional calls can be chained. - /// - /// - /// Any parameter is . - /// - public static IServiceCollection AddHttpClientFaultInjection(this IServiceCollection services); - - /// - /// Configures and registers default implementations for , - /// and ; - /// adds fault-injection policies to all . - /// - /// The services collection. - /// The configuration section to bind to . - /// - /// The so that additional calls can be chained. - /// - /// - /// Any parameter is . - /// - public static IServiceCollection AddHttpClientFaultInjection(this IServiceCollection services, IConfiguration section); - - /// - /// Calls the given action to configure options with and registers default implementations for - /// , and ; - /// adds fault-injection policies to all . - /// - /// The services collection. - /// Action to configure options with . - /// - /// The so that additional calls can be chained. - /// - /// - /// Any parameter is . - /// - /// - /// If the default instance of is used, this method also adds a - /// chaos policy handler to all registered with its name as the identifier. - /// Additional chaos policy handlers with different identifier names can be added using . - /// - public static IServiceCollection AddHttpClientFaultInjection(this IServiceCollection services, Action configure); - - /// - /// Adds a chaos policy handler identified by the chaos policy options group name to the given . - /// - /// The . - /// The chaos policy options group name. - /// - /// The so that additional calls can be chained. - /// - public static IHttpClientBuilder AddFaultInjectionPolicyHandler(this IHttpClientBuilder httpClientBuilder, string chaosPolicyOptionsGroupName); - - /// - /// Adds a chaos policy handler to the given - /// using weight assignments denoted in to determine which chaos policy options group to - /// use at each run of fault-injection. - /// - /// The . - /// Function to configure . - /// - /// The so that additional calls can be chained. - /// - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IHttpClientBuilder AddWeightedFaultInjectionPolicyHandlers(this IHttpClientBuilder httpClientBuilder, Action weightAssignmentsConfig); - - /// - /// Adds a chaos policy handler to the given - /// using weight assignments denoted in to determine which chaos policy options group to - /// use at each run of fault-injection. - /// - /// The . - /// The configuration section to bind to . - /// - /// The so that additional calls can be chained. - /// - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IHttpClientBuilder AddWeightedFaultInjectionPolicyHandlers(this IHttpClientBuilder httpClientBuilder, IConfigurationSection weightAssignmentsConfigSection); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpFaultInjectionOptionsBuilder.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpFaultInjectionOptionsBuilder.cs deleted file mode 100644 index a5919df85ce..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/HttpFaultInjectionOptionsBuilder.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Resilience.FaultInjection; - -namespace Microsoft.Extensions.Http.Resilience.FaultInjection; - -/// -/// Builder class that inherits to provide options configuration methods for -/// , and . -/// -public class HttpFaultInjectionOptionsBuilder -{ - /// - /// Initializes a new instance of the class. - /// - /// The services collection. - public HttpFaultInjectionOptionsBuilder(IServiceCollection services); - - /// - /// Configures default . - /// - /// - /// The builder object itself so that additional calls can be chained. - /// - public HttpFaultInjectionOptionsBuilder Configure(); - - /// - /// Configures through - /// the provided . - /// - /// - /// The configuration section to bind to . - /// - /// The builder object itself so that additional calls can be chained. - /// - /// Any parameter is . - /// - public HttpFaultInjectionOptionsBuilder Configure(IConfiguration section); - - /// - /// Configures through - /// the provided configure. - /// - /// - /// The function to be registered to configure . - /// - /// The builder object itself so that additional calls can be chained. - /// - /// Any parameter is . - /// - public HttpFaultInjectionOptionsBuilder Configure(Action configureOptions); - - /// - /// Add an exception instance to . - /// - /// The identifier for the exception instance to be added. - /// The exception instance to be added. - /// The builder object itself so that additional calls can be chained. - /// - /// is . - /// - /// - /// is an empty string or . - /// - public HttpFaultInjectionOptionsBuilder AddException(string key, Exception exception); - - /// - /// Adds a with the provided . - /// - /// The identifier for the options instance to be added. - /// The http content. - /// The builder object itself so that additional calls can be chained. - public HttpFaultInjectionOptionsBuilder AddHttpContent(string key, HttpContent content); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/IHttpClientChaosPolicyFactory.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/IHttpClientChaosPolicyFactory.cs deleted file mode 100644 index 05c0417cf71..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience.FaultInjection/IHttpClientChaosPolicyFactory.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly.Contrib.Simmy.Outcomes; - -namespace Microsoft.Extensions.Http.Resilience.FaultInjection; - -/// -/// Factory for HTTP response chaos policy creation. -/// -public interface IHttpClientChaosPolicyFactory -{ - /// - /// Creates an async HTTP response fault injection policy with delegate functions - /// to fetch fault injection settings from . - /// - /// - /// An HTTP response fault injection policy. - /// - AsyncInjectOutcomePolicy CreateHttpResponsePolicy(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/Endpoint.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/Endpoint.cs deleted file mode 100644 index 4b6bc36b060..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/Endpoint.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.ComponentModel.DataAnnotations; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Represents an URI based endpoint. -/// -public class Endpoint -{ - /// - /// Gets or sets the URL of the endpoint. - /// - /// - /// Only schema, domain name and, port will be used, rest of the URL is constructed from request URL. - /// - [Required] - public Uri? Uri { get; set; } - - public Endpoint(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/EndpointGroup.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/EndpointGroup.cs deleted file mode 100644 index 6e76a6f97a6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/EndpointGroup.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Represents a collection of . -/// -public class EndpointGroup -{ - /// - /// Gets or sets the endpoints in this endpoint group. - /// - /// - /// By default the endpoints are initialized with an empty list. - /// The client must define the endpoint for each endpoint group. - /// At least one endpoint must be defined on each endpoint group in order to performed hedged requests. - /// - [Length(1, int.MaxValue)] - [ValidateEnumeratedItems] - public IList Endpoints { get; set; } - - public EndpointGroup(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HedgingEndpointOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HedgingEndpointOptions.cs deleted file mode 100644 index f7391c3fb7d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HedgingEndpointOptions.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Options for the pipeline of resilience strategies assigned to a particular endpoint. -/// -/// -/// It is using three chained layers in this order (from the outermost to the innermost): Bulkhead -> Circuit Breaker -> Attempt Timeout. -/// -public class HedgingEndpointOptions -{ - /// - /// Gets or sets the bulkhead options for the endpoint. - /// - /// - /// By default it is initialized with a unique instance of using default properties values. - /// - [Required] - [ValidateObjectMembers] - public HttpRateLimiterStrategyOptions RateLimiterOptions { get; set; } - - /// - /// Gets or sets the circuit breaker options for the endpoint. - /// - /// - /// By default it is initialized with a unique instance of using default properties values. - /// - [Required] - [ValidateObjectMembers] - public HttpCircuitBreakerStrategyOptions CircuitBreakerOptions { get; set; } - - /// - /// Gets or sets the options for the timeout resilience strategy applied per each request attempt. - /// - /// - /// By default it is initialized with a unique instance of - /// using a custom of 10 seconds. - /// - [Required] - [ValidateObjectMembers] - public HttpTimeoutStrategyOptions TimeoutOptions { get; set; } - - public HedgingEndpointOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpCircuitBreakerStrategyOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpCircuitBreakerStrategyOptions.cs deleted file mode 100644 index 7f090881218..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpCircuitBreakerStrategyOptions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly.CircuitBreaker; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Implementation of the for results. -/// -public class HttpCircuitBreakerStrategyOptions : CircuitBreakerStrategyOptions -{ - /// - /// Initializes a new instance of the class. - /// - /// - /// By default the options is set to handle only transient failures, - /// that is, timeouts, 5xx responses, and exceptions. - /// - public HttpCircuitBreakerStrategyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientBuilderExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientBuilderExtensions.cs deleted file mode 100644 index 9df136f1490..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientBuilderExtensions.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Extensions for . -/// -/// -/// Extensions for . -/// -public static class HttpClientBuilderExtensions -{ - /// - /// Adds a standard hedging handler that wraps the execution of the request with a standard hedging mechanism. - /// - /// The HTTP client builder. - /// Configures the routing strategy associated with this handler. - /// - /// A builder that can be used to configure the standard hedging behavior. - /// - /// - /// The standard hedging uses a pool of circuit breakers to ensure that unhealthy endpoints are not hedged against. - /// By default, the selection from pool is based on the URL Authority (scheme + host + port). - /// It is recommended that you configure the way the strategies are selected by calling - /// - /// extensions. - /// - /// See for more details about the used resilience strategies. - /// - /// - public static IStandardHedgingHandlerBuilder AddStandardHedgingHandler(this IHttpClientBuilder builder, Action configure); - - /// - /// Adds a standard hedging handler that wraps the execution of the request with a standard hedging mechanism. - /// - /// The HTTP client builder. - /// - /// A builder that can be used to configure the standard hedging behavior. - /// - /// - /// The standard hedging uses a pool of circuit breakers to ensure that unhealthy endpoints are not hedged against. - /// By default, the selection from pool is based on the URL Authority (scheme + host + port). - /// It is recommended that you configure the way the strategies are selected by calling - /// - /// extensions. - /// - /// See for more details about the used resilience strategies. - /// - /// - public static IStandardHedgingHandlerBuilder AddStandardHedgingHandler(this IHttpClientBuilder builder); - - /// - /// Adds a resilience pipeline handler that uses a named inline resilience pipeline. - /// - /// The builder instance. - /// The custom identifier for the resilience pipeline, used in the name of the pipeline. - /// The callback that configures the pipeline. - /// The HTTP pipeline builder instance. - /// - /// The final pipeline name is combination of and . - /// Use pipeline name identifier if your HTTP client contains multiple resilience handlers. - /// - public static IHttpResiliencePipelineBuilder AddResilienceHandler(this IHttpClientBuilder builder, string pipelineName, Action> configure); - - /// - /// Adds a resilience pipeline handler that uses a named inline resilience pipeline. - /// - /// The builder instance. - /// The custom identifier for the resilience pipeline, used in the name of the pipeline. - /// The callback that configures the pipeline. - /// The HTTP pipeline builder instance. - /// - /// The final pipeline name is combination of and . - /// Use pipeline name identifier if your HTTP client contains multiple resilience handlers. - /// - public static IHttpResiliencePipelineBuilder AddResilienceHandler(this IHttpClientBuilder builder, string pipelineName, Action, ResilienceHandlerContext> configure); - - /// - /// Adds a standard resilience handler that uses multiple resilience strategies with default options to send the requests and handle any transient errors. - /// - /// The builder instance. - /// The section that the options will bind against. - /// The HTTP resilience handler builder instance. - /// - /// The resilience pipeline combines multiple strategies that are configured based on HTTP-specific options with recommended defaults. - /// See for more details about the individual resilience strategies configured by this method. - /// - public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder, IConfigurationSection section); - - /// - /// Adds a standard resilience handler that uses multiple resilience strategies with default options to send the requests and handle any transient errors. - /// - /// The builder instance. - /// The callback that configures the options. - /// The HTTP resilience handler builder instance. - /// - /// The resilience pipeline combines multiple strategies that are configured based on HTTP-specific options with recommended defaults. - /// See for more details about the individual resilience strategies configured by this method. - /// - public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder, Action configure); - - /// - /// Adds a standard resilience handler that uses multiple resilience strategies with default options to send the requests and handle any transient errors. - /// - /// The builder instance. - /// The HTTP resilience handler builder instance. - /// - /// The resilience pipeline combines multiple strategies that are configured based on HTTP-specific options with recommended defaults. - /// See for more details about the individual resilience strategies configured by this method. - /// - public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientHedgingResiliencePredicates.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientHedgingResiliencePredicates.cs deleted file mode 100644 index fe119bb068f..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientHedgingResiliencePredicates.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Static predicates used within the current package. -/// -public static class HttpClientHedgingResiliencePredicates -{ - /// - /// Determines whether an exception should be treated by hedging as a transient failure. - /// - public static readonly Predicate IsTransientHttpException; - - /// - /// Determines whether an outcome should be treated by hedging as a transient failure. - /// - public static readonly Predicate> IsTransientHttpOutcome; -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientResiliencePredicates.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientResiliencePredicates.cs deleted file mode 100644 index 25ddf562929..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpClientResiliencePredicates.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Provides static predicates used within the current package. -/// -public static class HttpClientResiliencePredicates -{ - /// - /// Determines whether an exception should be treated by resilience strategies as a transient failure. - /// - public static readonly Predicate IsTransientHttpException; - - /// - /// Determines whether a response contains a transient failure. - /// - /// The current handling implementation uses approach proposed by Polly: - /// . - /// - public static readonly Predicate IsTransientHttpFailure; - - /// - /// Determines whether an outcome should be treated by resilience strategies as a transient failure. - /// - public static readonly Predicate> IsTransientHttpOutcome; -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpHedgingStrategyOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpHedgingStrategyOptions.cs deleted file mode 100644 index 48452c59914..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpHedgingStrategyOptions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly.Hedging; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Implementation of the for results. -/// -public class HttpHedgingStrategyOptions : HedgingStrategyOptions -{ - /// - /// Initializes a new instance of the class. - /// - /// - /// By default the options is set to handle only transient failures, - /// i.e. timeouts, 5xx responses and exceptions. - /// - public HttpHedgingStrategyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRateLimiterStrategyOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRateLimiterStrategyOptions.cs deleted file mode 100644 index 93059ab6b5e..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRateLimiterStrategyOptions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Polly.RateLimiting; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Implementation of the for HTTP scenarios. -/// -public class HttpRateLimiterStrategyOptions : RateLimiterStrategyOptions -{ - public HttpRateLimiterStrategyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRequestMessageExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRequestMessageExtensions.cs deleted file mode 100644 index f55454963f2..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRequestMessageExtensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// The resilience extensions for . -/// -public static class HttpRequestMessageExtensions -{ - /// - /// Gets the from the request message. - /// - /// The request. - /// An instance of or . - public static ResilienceContext? GetResilienceContext(this HttpRequestMessage requestMessage); - - /// - /// Sets the on the request message. - /// - /// The request. - /// An instance of . - public static void SetResilienceContext(this HttpRequestMessage requestMessage, ResilienceContext? resilienceContext); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpResiliencePipelineBuilderExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpResiliencePipelineBuilderExtensions.cs deleted file mode 100644 index 674b55bb0d7..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpResiliencePipelineBuilderExtensions.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Net.Http; -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Extensions for . -/// -public static class HttpResiliencePipelineBuilderExtensions -{ - /// - /// Instructs the underlying builder to select the pipeline instance by redacted authority (scheme + host + port). - /// - /// The builder instance. - /// The data class associated with the authority. - /// The same builder instance. - /// The authority is redacted using retrieved for . - public static IHttpResiliencePipelineBuilder SelectPipelineByAuthority(this IHttpResiliencePipelineBuilder builder, DataClassification classification); - - /// - /// Instructs the underlying builder to select the pipeline instance by custom selector. - /// - /// The builder instance. - /// The factory that returns a key selector. - /// The same builder instance. - /// The pipeline key is used in metrics and logs, so don't return any sensitive values. - public static IHttpResiliencePipelineBuilder SelectPipelineBy(this IHttpResiliencePipelineBuilder builder, Func> selectorFactory); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRetryStrategyOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRetryStrategyOptions.cs deleted file mode 100644 index 3771df3dd44..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpRetryStrategyOptions.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Net.Http; -using Polly.Retry; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Implementation of the for results. -/// -public class HttpRetryStrategyOptions : RetryStrategyOptions -{ - /// - /// Gets or sets a value indicating whether to use the Retry-After header for the retry delays. - /// - /// - /// Defaults to . - /// - /// - /// If the property is set to then the generator will resolve the delay - /// based on the Retry-After header rules, otherwise it will return and the retry strategy - /// delay will generate the delay based on the configured options. - /// - public bool ShouldRetryAfterHeader { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// - /// By default, the options are set to handle only transient failures, - /// that is, timeouts, 5xx responses, and exceptions. - /// - public HttpRetryStrategyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardHedgingResilienceOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardHedgingResilienceOptions.cs deleted file mode 100644 index 6d072cbed75..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardHedgingResilienceOptions.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Options for the pipeline of resilience strategies for usage in hedging HTTP scenarios. -/// -/// /// -/// These options represents configuration for 5 chained layers in this order (from the outermost to the innermost): -/// -/// Total Request Timeout -> Hedging -> Bulkhead (per endpoint) -> Circuit Breaker (per endpoint) -> Attempt Timeout (per endpoint). -/// -/// The configuration of each resilience strategy is initialized with the default options per type. The request goes through these resilience strategies: -/// -/// -/// Total request timeout strategy applies an overall timeout to the execution, -/// ensuring that the request including hedging attempts does not exceed the configured limit. -/// The hedging strategy executes the requests against multiple endpoints in case the dependency is slow or returns a transient error. -/// The bulkhead policy limits the maximum number of concurrent requests being send to the dependency. -/// The circuit breaker blocks the execution if too many direct failures or timeouts are detected. -/// The attempt timeout strategy limits each request attempt duration and throws if its exceeded. -/// -/// -/// The last three strategies are assigned to each individual endpoint. The selection of endpoint can be customized by -/// or -/// extensions. -/// -/// By default, the endpoint is selected by authority (scheme + host + port). -/// -/// -public class HttpStandardHedgingResilienceOptions -{ - /// - /// Gets or sets the timeout strategy options for the total timeout applied on the request execution. - /// - /// - /// By default, this property is initialized with a unique instance of - /// using default property values. - /// - [Required] - [ValidateObjectMembers] - public HttpTimeoutStrategyOptions TotalRequestTimeoutOptions { get; set; } - - /// - /// Gets or sets the hedging strategy options. - /// - /// - /// By default, this property is initialized with a unique instance of using default property values. - /// - [Required] - [ValidateObjectMembers] - public HttpHedgingStrategyOptions HedgingOptions { get; set; } - - /// - /// Gets or sets the hedging endpoint options. - /// - /// - /// By default, this property is initialized with a unique instance of using default property values. - /// - [Required] - [ValidateObjectMembers] - public HedgingEndpointOptions EndpointOptions { get; set; } - - public HttpStandardHedgingResilienceOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceBuilderBuilderExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceBuilderBuilderExtensions.cs deleted file mode 100644 index d63d0e0cb1a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceBuilderBuilderExtensions.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using System.Net.Http; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Configuration; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Extensions for . -/// -public static class HttpStandardResilienceBuilderBuilderExtensions -{ - /// - /// Configures the for the standard resilience pipeline. - /// - /// The pipeline builder. - /// The section that the options will bind against. - /// The same builder instance. - public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, IConfigurationSection section); - - /// - /// Configures the for the standard resilience pipeline. - /// - /// The pipeline builder. - /// The configure method. - /// The same builder instance. - public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, Action configure); - - /// - /// Configures the for the standard resilience pipeline. - /// - /// The pipeline builder. - /// The configure method. - /// The same builder instance. - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, Action configure); - - /// - /// Instructs the underlying builder to select the pipeline instance by redacted authority (scheme + host + port). - /// - /// The pipeline builder. - /// The data class associated with the authority. - /// The same builder instance. - /// The authority is redacted using retrieved for . - public static IHttpStandardResiliencePipelineBuilder SelectPipelineByAuthority(this IHttpStandardResiliencePipelineBuilder builder, DataClassification classification); - - /// - /// Instructs the underlying builder to select the pipeline instance by custom selector. - /// - /// The pipeline builder. - /// The factory that returns a key selector. - /// The same builder instance. - /// The pipeline key is used in metrics and logs, do not return any sensitive value. - public static IHttpStandardResiliencePipelineBuilder SelectPipelineBy(this IHttpStandardResiliencePipelineBuilder builder, Func> selectorFactory); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceOptions.cs deleted file mode 100644 index c7d53825596..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpStandardResilienceOptions.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Options for resilience strategies for usage in HTTP scenarios. -/// -/// -/// These options represent configuration for five chained resilience strategies in this order (from the outermost to the innermost): -/// -/// Bulkhead -> Total Request Timeout -> Retry -> Circuit Breaker -> Attempt Timeout. -/// -/// The configuration of each pipeline is initialized with the default options per type. The request goes through these strategies: -/// -/// Total request timeout pipeline applies an overall timeout to the execution, -/// ensuring that the request including hedging attempts, does not exceed the configured limit. -/// The retry pipeline retries the request in case the dependency is slow or returns a transient error. -/// The bulkhead pipeline limits the maximum number of concurrent requests being send to the dependency. -/// The circuit breaker blocks the execution if too many direct failures or timeouts are detected. -/// The attempt timeout pipeline limits each request attempt duration and throws if its exceeded. -/// -/// -public class HttpStandardResilienceOptions -{ - /// - /// Gets or sets the bulkhead options. - /// - /// - /// By default, this property is initialized with a unique instance of using default properties values. - /// - [Required] - [ValidateObjectMembers] - public HttpRateLimiterStrategyOptions RateLimiterOptions { get; set; } - - /// - /// Gets or sets the timeout Strategy options for the total timeout applied on the request's execution. - /// - /// - /// By default, this property is initialized with a unique instance of . - /// - [Required] - [ValidateObjectMembers] - public HttpTimeoutStrategyOptions TotalRequestTimeoutOptions { get; set; } - - /// - /// Gets or sets the retry pipeline options. - /// - /// - /// By default, this property is initialized with a unique instance of using default properties values. - /// - [Required] - [ValidateObjectMembers] - public HttpRetryStrategyOptions RetryOptions { get; set; } - - /// - /// Gets or sets the circuit breaker options. - /// - /// - /// By default, this property is initialized with a unique instance of using default properties values. - /// - [Required] - [ValidateObjectMembers] - public HttpCircuitBreakerStrategyOptions CircuitBreakerOptions { get; set; } - - /// - /// Gets or sets the options for the timeout pipeline applied per each request attempt. - /// - /// - /// By default, this property is initialized with a unique instance of - /// using custom of 10 seconds. - /// - [Required] - [ValidateObjectMembers] - public HttpTimeoutStrategyOptions AttemptTimeoutOptions { get; set; } - - public HttpStandardResilienceOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpTimeoutStrategyOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpTimeoutStrategyOptions.cs deleted file mode 100644 index 89f826deabf..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/HttpTimeoutStrategyOptions.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Polly.Timeout; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Implementation of the for HTTP scenarios. -/// -public class HttpTimeoutStrategyOptions : TimeoutStrategyOptions -{ - public HttpTimeoutStrategyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/IHttpResiliencePipelineBuilder.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/IHttpResiliencePipelineBuilder.cs deleted file mode 100644 index d8cb7607ba5..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/IHttpResiliencePipelineBuilder.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// The builder for configuring the HTTP client resilience pipeline. -/// -public interface IHttpResiliencePipelineBuilder -{ - /// - /// Gets the name of the resilience pipeline configured by this builder. - /// - string PipelineName { get; } - - /// - /// Gets the application service collection. - /// - IServiceCollection Services { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/IHttpStandardResiliencePipelineBuilder.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/IHttpStandardResiliencePipelineBuilder.cs deleted file mode 100644 index c0462f6b426..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/IHttpStandardResiliencePipelineBuilder.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// The builder for the standard HTTP resilience pipeline. -/// -public interface IHttpStandardResiliencePipelineBuilder -{ - /// - /// Gets the name of the resilience pipeline configured by this builder. - /// - string PipelineName { get; } - - /// - /// Gets the application service collection. - /// - IServiceCollection Services { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/IRoutingStrategyBuilder.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/IRoutingStrategyBuilder.cs deleted file mode 100644 index b28252eddea..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/IRoutingStrategyBuilder.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Builder for configuring the routing strategies associated with hedging handler. -/// -public interface IRoutingStrategyBuilder -{ - /// - /// Gets the routing strategy name being configured. - /// - string Name { get; } - - /// - /// Gets the service collection. - /// - IServiceCollection Services { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/IStandardHedgingHandlerBuilder.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/IStandardHedgingHandlerBuilder.cs deleted file mode 100644 index e5ef957d82a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/IStandardHedgingHandlerBuilder.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Defines the builder used to configure the standard hedging handler. -/// -public interface IStandardHedgingHandlerBuilder -{ - /// - /// Gets the name of standard hedging handler being configured. - /// - string Name { get; } - - /// - /// Gets the service collection. - /// - IServiceCollection Services { get; } - - /// - /// Gets the builder for the routing strategy. - /// - IRoutingStrategyBuilder RoutingStrategyBuilder { get; } -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/OrderedGroupsRoutingOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/OrderedGroupsRoutingOptions.cs deleted file mode 100644 index 621776a946d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/OrderedGroupsRoutingOptions.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Represents the options for collection of endpoint groups that have fixed order. -/// -/// -/// This strategy picks the endpoint groups in he same order as they are specified in the collection. -/// -public class OrderedGroupsRoutingOptions -{ - /// - /// Gets or sets the collection of ordered endpoints groups. - /// - [Required] - [Length(1, int.MaxValue)] - [ValidateEnumeratedItems] - public IList Groups { get; set; } - - public OrderedGroupsRoutingOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/ResilienceHandlerContext.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/ResilienceHandlerContext.cs deleted file mode 100644 index 9fb18a3d02d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/ResilienceHandlerContext.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using Microsoft.Extensions.Http.Resilience.Internal; -using Polly.DependencyInjection; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// The context used when building a resilience pipeline HTTP handler. -/// -public sealed class ResilienceHandlerContext -{ - /// - /// Gets the service provider. - /// - public IServiceProvider ServiceProvider { get; } - - /// - /// Gets the name of the builder being built. - /// - public string BuilderName { get; } - - /// - /// Gets the instance name of resilience pipeline being built. - /// - public string InstanceName { get; } - - /// - /// Enables dynamic reloading of the resilience pipeline whenever the options are changed. - /// - /// The options type to listen to. - /// The named options, if any. - /// - /// You can decide based on the to listen for changes in global options or named options. - /// If is then the global options are listened to. - /// - /// You can listen for changes only for single options. If you call this method multiple times, the preceding calls are ignored and only the last one wins. - /// - /// - public void EnableReloads(string? name = null); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/RoutingStrategyBuilderExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/RoutingStrategyBuilderExtensions.cs deleted file mode 100644 index 9e2001ef843..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/RoutingStrategyBuilderExtensions.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Http.Resilience.Routing.Internal; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Extensions for . -/// -public static class RoutingStrategyBuilderExtensions -{ - /// - /// Configures ordered groups routing using . - /// - /// The routing builder. - /// The section that the will bind against. - /// - /// The same routing builder instance. - /// - public static IRoutingStrategyBuilder ConfigureOrderedGroups(this IRoutingStrategyBuilder builder, IConfigurationSection section); - - /// - /// Configures ordered groups routing using . - /// - /// The routing builder. - /// The callback that configures . - /// - /// The same routing builder instance. - /// - public static IRoutingStrategyBuilder ConfigureOrderedGroups(this IRoutingStrategyBuilder builder, Action configure); - - /// - /// Configures ordered groups routing using . - /// - /// The routing builder. - /// The callback that configures . - /// - /// The same routing builder instance. - /// - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IRoutingStrategyBuilder ConfigureOrderedGroups(this IRoutingStrategyBuilder builder, Action configure); - - /// - /// Configures weighted groups routing using . - /// - /// The routing builder. - /// The section that the will bind against. - /// - /// The same routing builder instance. - /// - public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, IConfigurationSection section); - - /// - /// Configures weighted groups routing using . - /// - /// The routing builder. - /// The callback that configures . - /// - /// The same routing builder instance. - /// - public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, Action configure); - - /// - /// Configures weighted groups routing using . - /// - /// The routing builder. - /// The callback that configures . - /// - /// The same routing builder instance. - /// - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, Action configure); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/StandardHedgingHandlerBuilderExtensions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/StandardHedgingHandlerBuilderExtensions.cs deleted file mode 100644 index 98ad2e2f42a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/StandardHedgingHandlerBuilderExtensions.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using System.Net.Http; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Configuration; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Extensions for . -/// -public static class StandardHedgingHandlerBuilderExtensions -{ - /// - /// Configures the for the standard hedging pipeline. - /// - /// The pipeline builder. - /// The section that the options will bind against. - /// The same builder instance. - public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, IConfigurationSection section); - - /// - /// Configures the for the standard hedging pipeline. - /// - /// The pipeline builder. - /// The configure method. - /// The same builder instance. - public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, Action configure); - - /// - /// Configures the for the standard hedging pipeline. - /// - /// The pipeline builder. - /// The configure method. - /// The same builder instance. - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, Action configure); - - /// - /// Instructs the underlying pipeline builder to select the pipeline instance by redacted authority (scheme + host + port). - /// - /// The builder instance. - /// The data class associated with the authority. - /// The same builder instance. - /// The authority is redacted using retrieved for . - public static IStandardHedgingHandlerBuilder SelectPipelineByAuthority(this IStandardHedgingHandlerBuilder builder, DataClassification classification); - - /// - /// Instructs the underlying pipeline builder to select the pipeline instance by custom selector. - /// - /// The builder instance. - /// The factory that returns key selector. - /// The same builder instance. - /// The pipeline key is used in metrics and logs, do not return any sensitive value. - public static IStandardHedgingHandlerBuilder SelectPipelineBy(this IStandardHedgingHandlerBuilder builder, Func> selectorFactory); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpoint.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpoint.cs deleted file mode 100644 index 98be093d33d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpoint.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Represents an URI based endpoint with a weight assigned. -/// -public class WeightedEndpoint -{ - /// - /// Gets or sets the URL of the endpoint. - /// - /// - /// Only schema, domain name and, port is used, rest of the URL is constructed from request URL. - /// - [Required] - public Uri? Uri { get; set; } - - /// - /// Gets or sets the weight of the endpoint. - /// - /// - /// Default value is 32000. - /// - [Range(1, 64000)] - public int Weight { get; set; } - - public WeightedEndpoint(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpointGroup.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpointGroup.cs deleted file mode 100644 index 35e0aa69ae0..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedEndpointGroup.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Represents a collection of with a weight assigned. -/// -public class WeightedEndpointGroup : EndpointGroup -{ - /// - /// Gets or sets the weight of the group. - /// - /// - /// Default value is 32000. - /// - [Range(1, 64000)] - public int Weight { get; set; } - - public WeightedEndpointGroup(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupSelectionMode.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupSelectionMode.cs deleted file mode 100644 index 09832563e58..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupSelectionMode.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Represents the selection mode used in . -/// -public enum WeightedGroupSelectionMode -{ - /// - /// In this selection mode the weight is used for every pick of . - /// - EveryAttempt = 0, - /// - /// In this selection mode the weight is only used to pick initial . - /// Remaining groups are picked in order, starting from the first, finishing with last and skipping already picked group. - /// - InitialAttempt = 1 -} diff --git a/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupsRoutingOptions.cs b/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupsRoutingOptions.cs deleted file mode 100644 index 16de6e81fe7..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Http.Resilience/WeightedGroupsRoutingOptions.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Assembly 'Microsoft.Extensions.Http.Resilience' - -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Http.Resilience; - -/// -/// Represents the options for collection of endpoint groups that have a weight assigned. -/// -/// -/// This strategy picks the first endpoint group based on its weight and then selects the remaining groups in order, -/// starting from the first one and omitting the one that was already selected. -/// -public class WeightedGroupsRoutingOptions -{ - /// - /// Gets or sets the selection mode that determines the behavior of underlying routing strategy. - /// - public WeightedGroupSelectionMode SelectionMode { get; set; } - - /// - /// Gets or sets the collection of weighted endpoints groups. - /// - [Required] - [Length(1, int.MaxValue)] - [ValidateEnumeratedItems] - public IList Groups { get; set; } - - public WeightedGroupsRoutingOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollector.cs b/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollector.cs deleted file mode 100644 index 566f74da831..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollector.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Logging.Testing; - -/// -/// Collects log records sent to the fake logger. -/// -[DebuggerDisplay("Count = {Count}, LatestRecord = {LatestRecord}")] -[DebuggerTypeProxy(typeof(FakeLogCollectorDebugView))] -public class FakeLogCollector -{ - /// - /// Gets the latest record that was created. - /// - /// - /// The latest log record created. - /// - /// No records have been captured. - public FakeLogRecord LatestRecord { get; } - - /// - /// Gets the number of log records captured by this collector. - /// - public int Count { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The options to control which log records to retain. - public FakeLogCollector(IOptions options); - - /// - /// Initializes a new instance of the class. - /// - public FakeLogCollector(); - - /// - /// Creates a new instance of the class. - /// - /// The options to control which log records to retain. - /// The collector. - public static FakeLogCollector Create(FakeLogCollectorOptions options); - - /// - /// Removes all accumulated log records from the collector. - /// - public void Clear(); - - /// - /// Gets the records that are held by the collector. - /// - /// to atomically clear the set of accumulated log records; otherwise, . - /// - /// The list of records tracked to date by the collector. - /// - public IReadOnlyList GetSnapshot(bool clear = false); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollectorOptions.cs b/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollectorOptions.cs deleted file mode 100644 index 6ff5718405c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogCollectorOptions.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging.Testing; - -/// -/// Options for the fake logger. -/// -public class FakeLogCollectorOptions -{ - /// - /// Gets or sets the logger categories for which records are collected. - /// - /// The default is an empty set. - /// - /// Defaults to an empty set, which doesn't filter any records. - /// If not empty, only records coming from loggers in these categories will be collected by the fake logger. - /// - public ISet FilteredCategories { get; set; } - - /// - /// Gets or sets the logging levels for which records are collected. - /// - /// The default is an empty set. - /// - /// Defaults to an empty set, which doesn't filter any records. - /// If not empty, only records with the given level will be collected by the fake logger. - /// - public ISet FilteredLevels { get; set; } - - /// - /// Gets or sets a value indicating whether to collect records that are logged when the associated log level is currently disabled. - /// - /// - /// if records that are logged when the associated log level is - /// disabled are collected. The default is . - /// - public bool CollectRecordsForDisabledLogLevels { get; set; } - - /// - /// Gets or sets the time provider to use when time-stamping log records. - /// - /// The default is . - public TimeProvider TimeProvider { get; set; } - - /// - /// Gets or sets an output sink where every record harvested by the collector is sent. - /// - /// The default is . - /// - /// By setting this property, you can have all log records harvested by the collector be copied somewhere convenient. - /// - public Action? OutputSink { get; set; } - - /// - /// Gets or sets a delegate that is used to format log records in a specialized way before sending them to the registered output sink. - /// - public Func OutputFormatter { get; set; } - - public FakeLogCollectorOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogRecord.cs b/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogRecord.cs deleted file mode 100644 index 09cfa21c9b5..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogRecord.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging.Testing; - -/// -/// A single log record tracked by . -/// -public class FakeLogRecord -{ - /// - /// Gets the level used when producing the log record. - /// - public LogLevel Level { get; } - - /// - /// Gets the id representing the specific log statement. - /// - public EventId Id { get; } - - /// - /// Gets the opaque state supplied by the caller when creating the log record. - /// - public object? State { get; } - - /// - /// Gets the opaque state supplied by the caller when creating the log record as a read-only list. - /// - /// - /// When logging using the code generator logging model, the arguments you supply to the logging method are packaged into a single state object which is delivered to the - /// method. This state can be retrieved as a set of name/value pairs encoded in a read-only list. - /// - /// The object returned by this property is the same as what returns, except it has been cast to a read-only list. - /// - /// The state object is not compatible with supported logging model and is not a read-only list. - public IReadOnlyList>? StructuredState { get; } - - /// - /// Gets an optional exception associated with the log record. - /// - public Exception? Exception { get; } - - /// - /// Gets the formatted message text for the record. - /// - public string Message { get; } - - /// - /// Gets the logging scopes active when the log record was created. - /// - public IReadOnlyList Scopes { get; } - - /// - /// Gets the optional category of this record. - /// - /// - /// The category corresponds to the T value in . - /// - public string? Category { get; } - - /// - /// Gets a value indicating whether the log level was enabled or disabled when this record was collected. - /// - public bool LevelEnabled { get; } - - /// - /// Gets the time at which the log record was created. - /// - public DateTimeOffset Timestamp { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The level used when producing the log record. - /// The id representing the specific log statement. - /// The opaque state supplied by the caller when creating the log record. - /// An optional exception associated with the log record. - /// The formatted message text for the record. - /// List of active scopes active for this log record. - /// The optional category for this record, which corresponds to the T in . - /// Whether the log level was enabled or not when the method was called. - /// The time at which the log record was created. - public FakeLogRecord(LogLevel level, EventId id, object? state, Exception? exception, string message, IReadOnlyList scopes, string? category, bool enabled, DateTimeOffset timestamp); - - /// - /// Returns a string representing this object. - /// - /// A string that helps identity this object. - public override string ToString(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.T.cs b/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.T.cs deleted file mode 100644 index 984a822c09b..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.T.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; - -namespace Microsoft.Extensions.Logging.Testing; - -/// -/// A logger which captures everything logged to it and enables inspection. -/// -/// -/// This type is intended for use in unit tests. It captures all the log state to memory and lets you inspect it -/// to validate that your code is logging what it should. -/// -/// The type whose name to use as a logger category. -public sealed class FakeLogger : FakeLogger, ILogger, ILogger -{ - /// - /// Initializes a new instance of the class. - /// - /// Where to push all log state. - public FakeLogger(FakeLogCollector? collector = null); - - /// - /// Initializes a new instance of the class that copies all log records to the given output sink. - /// - /// Where to emit individual log records. - public FakeLogger(Action outputSink); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.cs b/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.cs deleted file mode 100644 index 18b4d97242f..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLogger.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Concurrent; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging.Testing; - -/// -/// A logger which captures everything logged to it and enables inspection. -/// -/// -/// This type is intended for use in unit tests. It captures all the log state to memory and lets you inspect it -/// to validate that your code is logging what it should. -/// -public class FakeLogger : ILogger -{ - /// - /// Gets the logger collector associated with this logger, as specified when the logger was created. - /// - public FakeLogCollector Collector { get; } - - /// - /// Gets the latest record logged to this logger. - /// - /// - /// This is a convenience property that merely returns the latest record from the underlying collector. - /// - /// No records have been captured. - public FakeLogRecord LatestRecord { get; } - - /// - /// Gets this logger's category, as specified when the logger was created. - /// - public string? Category { get; } - - /// - /// Initializes a new instance of the class. - /// - /// Where to push all log state. If this is then a fresh collector is allocated automatically. - /// The logger's category, which indicates the origin of the logger and is captured in each record. - public FakeLogger(FakeLogCollector? collector = null, string? category = null); - - /// - /// Initializes a new instance of the class that copies all log records to the given output sink. - /// - /// Where to emit individual log records. - /// The logger's category, which indicates the origin of the logger and is captured in each record. - public FakeLogger(Action outputSink, string? category = null); - - /// - /// Begins a logical operation scope. - /// - /// The type of the state to begin scope for. - /// The identifier for the scope. - /// A disposable object that ends the logical operation scope on dispose. - public IDisposable? BeginScope(TState state) where TState : notnull; - - /// - /// Creates a new log record. - /// - /// The type of the object to be written. - /// Entry will be written on this level. - /// Id of the event. - /// The entry to be written. Can be also an object. - /// The exception related to this entry. - /// Function to create a string message of the state and exception. - public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter); - - /// - /// Controls the enabled state of a log level. - /// - /// The log level to affect. - /// Whether the log level is enabled or not. - public void ControlLevel(LogLevel logLevel, bool enabled); - - /// - /// Checks if the given log level is enabled. - /// - /// Level to be checked. - /// if enabled; otherwise. - public bool IsEnabled(LogLevel logLevel); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerExtensions.cs b/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerExtensions.cs deleted file mode 100644 index 8cd2a0b493b..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerExtensions.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Logging.Testing; - -/// -/// Extensions for configuring fake logging, used in unit tests. -/// -public static class FakeLoggerExtensions -{ - /// - /// Configure fake logging. - /// - /// Logging builder. - /// Configuration section that contains . - /// Logging . - public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, IConfigurationSection section); - - /// - /// Configure fake logging. - /// - /// Logging builder. - /// Logging configuration options. - /// Logging . - public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, Action configure); - - /// - /// Configure fake logging with default options. - /// - /// Logging builder. - /// Logging . - public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder); - - /// - /// Configure fake logging. - /// - /// Service collection. - /// Configuration section that contains . - /// Service collection for API chaining. - public static IServiceCollection AddFakeLogging(this IServiceCollection services, IConfigurationSection section); - - /// - /// Configure fake logging. - /// - /// Service collection. - /// Logging configuration options. - /// Service collection for API chaining. - public static IServiceCollection AddFakeLogging(this IServiceCollection services, Action configure); - - /// - /// Configure fake logging with default options. - /// - /// Service collection. - /// Service collection for API chaining. - public static IServiceCollection AddFakeLogging(this IServiceCollection services); - - /// - /// Gets the object that collects log records sent to the fake logger. - /// - /// The service provider containing the logger. - /// No collector exists in the provider. - /// The collector which tracks records logged to fake loggers. - public static FakeLogCollector GetFakeLogCollector(this IServiceProvider services); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerProvider.cs b/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerProvider.cs deleted file mode 100644 index f3e8daf7ff6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging.Testing/FakeLoggerProvider.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Testing' - -using System; -using System.Collections.Concurrent; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging.Testing; - -/// -/// Provides fake loggers. -/// -[ProviderAlias("Fake")] -public class FakeLoggerProvider : ILoggerProvider, IDisposable, ISupportExternalScope -{ - /// - /// Gets the log record collector for all loggers created by this provider. - /// - public FakeLogCollector Collector { get; } - - /// - /// Initializes a new instance of the class. - /// - /// The collector that will receive all log records emitted to fake loggers. - public FakeLoggerProvider(FakeLogCollector? collector = null); - - /// - /// Finalizes an instance of the class. - /// - [ExcludeFromCodeCoverage] - ~FakeLoggerProvider(); - - /// - /// Sets external scope information source for logger provider. - /// - /// The provider of scope data. - public void SetScopeProvider(IExternalScopeProvider scopeProvider); - - /// - /// Creates a new instance. - /// - /// The category name for messages produced by the logger. - /// The instance of that was created. - public FakeLogger CreateLogger(string? categoryName); - - /// - /// Clean up resources held by this object. - /// - public void Dispose(); - - /// - /// Clean up resources held by this object. - /// - /// when called from the method, when called from a finalizer. - protected virtual void Dispose(bool disposing); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/ITagCollector.cs b/API/WithDocs/Microsoft.Extensions.Logging/ITagCollector.cs deleted file mode 100644 index e08a2d10ae9..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/ITagCollector.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using Microsoft.Extensions.Compliance.Classification; - -namespace Microsoft.Extensions.Logging; - -/// -/// Interface given to custom tag providers, enabling them to emit tags. -/// -/// -/// See for details on how this interface is used. -/// -public interface ITagCollector -{ - /// - /// Adds a tag. - /// - /// The name of the tag to add. - /// The value of the tag to add. - /// is . - /// is empty or contains exclusively whitespace, - /// or when a tag of the same name has already been added. - /// - void Add(string tagName, object? tagValue); - - /// - /// Adds a tag. - /// - /// The name of the tag to add. - /// The value of the tag to add. - /// The data classification of the tag value. - /// is . - /// is empty or contains exclusively whitespace, - /// or when a tag of the same name has already been added. - /// - void Add(string tagName, object? tagValue, DataClassification classification); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/LogMethodHelper.cs b/API/WithDocs/Microsoft.Extensions.Logging/LogMethodHelper.cs deleted file mode 100644 index a7d1038a76d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/LogMethodHelper.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Diagnostics.Enrichment; -using Microsoft.Extensions.ObjectPool; - -namespace Microsoft.Extensions.Logging; - -/// -/// Utility type to support generated logging methods. -/// -/// -/// This type is not intended to be directly invoked by application code, -/// it is intended to be invoked by generated logging method code. -/// -[EditorBrowsable(EditorBrowsableState.Never)] -public sealed class LogMethodHelper : List>, ITagCollector, IEnrichmentTagCollector, IResettable -{ - /// - /// Gets or sets the name of the logging method parameter for which to collect tags. - /// - public string ParameterName { get; set; } - - /// - /// Gets log define options configured to skip the log level enablement check. - /// - public static LogDefineOptions SkipEnabledCheckOptions { get; } - - /// - public void Add(string tagName, object? tagValue); - - /// - public void Add(string tagName, object? tagValue, DataClassification classification); - - /// - /// Resets state of this container as described in . - /// - /// - /// if the object successfully reset and can be reused. - /// - public bool TryReset(); - - /// - /// Enumerates an enumerable into a string. - /// - /// The enumerable object. - /// - /// A string representation of the enumerable. - /// - public static string Stringify(IEnumerable? enumerable); - - /// - /// Enumerates an enumerable of key/value pairs into a string. - /// - /// Type of keys. - /// Type of values. - /// The enumerable object. - /// - /// A string representation of the enumerable. - /// - public static string Stringify(IEnumerable>? enumerable); - - /// - /// Gets an instance of a helper from the global pool. - /// - /// A usable instance. - public static LogMethodHelper GetHelper(); - - /// - /// Returns a helper instance to the global pool. - /// - /// The helper instance. - public static void ReturnHelper(LogMethodHelper helper); - - public LogMethodHelper(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/LogPropertiesAttribute.cs b/API/WithDocs/Microsoft.Extensions.Logging/LogPropertiesAttribute.cs deleted file mode 100644 index ed5d3f36b23..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/LogPropertiesAttribute.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging; - -/// -/// Marks a logging method parameter whose public tags need to be logged. -/// -/// -[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class LogPropertiesAttribute : Attribute -{ - /// - /// Gets or sets a value indicating whether tags are logged. - /// - /// - /// Defaults to . - /// - public bool SkipNullProperties { get; set; } - - /// - /// Gets or sets a value indicating whether to prefix the name of the parameter or property to the generated name of each tag being logged. - /// - /// - /// Defaults to . - /// - public bool OmitReferenceName { get; set; } - - public LogPropertiesAttribute(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/LogPropertyIgnoreAttribute.cs b/API/WithDocs/Microsoft.Extensions.Logging/LogPropertyIgnoreAttribute.cs deleted file mode 100644 index cd2ce91b9bf..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/LogPropertyIgnoreAttribute.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; - -namespace Microsoft.Extensions.Logging; - -/// -/// Indicates that a tag should not be logged. -/// -/// . -[AttributeUsage(AttributeTargets.Property)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class LogPropertyIgnoreAttribute : Attribute -{ - public LogPropertyIgnoreAttribute(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/LoggerEnrichmentOptions.cs b/API/WithDocs/Microsoft.Extensions.Logging/LoggerEnrichmentOptions.cs deleted file mode 100644 index 60a5bb3144c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/LoggerEnrichmentOptions.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging; - -/// -/// Options for logging enrichment features. -/// -public class LoggerEnrichmentOptions -{ - /// - /// Gets or sets a value indicating whether to include stack traces when an exception is logged. - /// - /// - /// The default value is . - /// - /// - /// When set to and exceptions are logged, the logger will add exception stack trace - /// with inner exception as a separate key-value pair with key 'stackTrace'. The maximum length of the column - /// defaults to 4096 characters and can be modified by setting the property. - /// The stack trace beyond the current limit will be truncated. - /// - public bool CaptureStackTraces { get; set; } - - /// - /// Gets or sets a value indicating whether to consult debugging files (PDB files) when producing stack traces. - /// - /// - /// Reading available debugging files produces richer stack traces, but can cost a substantial amount of time - /// to generate. As a result, this option should only be turned on in development scenarios, not for production use. - /// - /// This property has no effect if is . - /// - /// This defaults to . - /// - public bool UseFileInfoForStackTraces { get; set; } - - /// - /// Gets or sets a value indicating whether to include exception messages in stack traces. - /// - /// - /// This defaults to . - /// - /// - /// This property has no effect if is . - /// - public bool IncludeExceptionMessageInStackTraces { get; set; } - - /// - /// Gets or sets the maximum stack trace length to emit for a given log record. - /// - /// - /// The default value is 4096. - /// - /// - /// When set to a value less than 2 KB or greater than 32 KB, an exception will be thrown. - /// - /// This property has no effect if is . - /// - [Range(2048, 32768)] - public int MaxStackTraceLength { get; set; } - - public LoggerEnrichmentOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/LoggerMessageHelper.cs b/API/WithDocs/Microsoft.Extensions.Logging/LoggerMessageHelper.cs deleted file mode 100644 index fa68d958f27..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/LoggerMessageHelper.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; - -namespace Microsoft.Extensions.Logging; - -/// -/// Utility type to support generated logging methods. -/// -[EditorBrowsable(EditorBrowsableState.Never)] -public static class LoggerMessageHelper -{ - /// - /// Gets a thread-local instance of this type. - /// - public static LoggerMessageState ThreadLocalState { get; } - - /// - /// Enumerates an enumerable into a string. - /// - /// The enumerable object. - /// - /// A string representation of the enumerable. - /// - public static string Stringify(IEnumerable? enumerable); - - /// - /// Enumerates an enumerable of key/value pairs into a string. - /// - /// Type of keys. - /// Type of values. - /// The enumerable object. - /// - /// A string representation of the enumerable. - /// - public static string Stringify(IEnumerable>? enumerable); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/LoggerMessageState.cs b/API/WithDocs/Microsoft.Extensions.Logging/LoggerMessageState.cs deleted file mode 100644 index 59e7b3e870a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/LoggerMessageState.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Compliance.Classification; -using Microsoft.Extensions.Diagnostics.Enrichment; - -namespace Microsoft.Extensions.Logging; - -/// -/// Additional state to use with . -/// -[EditorBrowsable(EditorBrowsableState.Never)] -public sealed class LoggerMessageState : IEnrichmentTagCollector, IReadOnlyList>, IEnumerable>, IEnumerable, IReadOnlyCollection>, ITagCollector -{ - /// - /// Represents a captured tag that needs redaction. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public readonly struct ClassifiedTag - { - /// - /// Gets the name of the tag. - /// - public string Name { get; } - - /// - /// Gets the tag's value. - /// - public object? Value { get; } - - /// - /// Gets the tag's data classification. - /// - public DataClassification Classification { get; } - - /// - /// Initializes a new instance of the struct. - /// - public ClassifiedTag(string name, object? value, DataClassification classification); - } - - /// - /// Gets the array of tags. - /// - public KeyValuePair[] TagArray { get; } - - /// - /// Gets the array of tags. - /// - public KeyValuePair[] RedactedTagArray { get; } - - /// - /// Gets the array of classified tags. - /// - public ClassifiedTag[] ClassifiedTagArray { get; } - - /// - /// Gets a value indicating the number of unclassified tags currently in this instance. - /// - public int TagsCount { get; } - - /// - /// Gets a value indicating the number of classified tags currently in this instance. - /// - public int ClassifiedTagsCount { get; } - - /// - public KeyValuePair this[int index] { get; } - - /// - /// Gets or sets the parameter name that is prepended to all tag names added to this instance using the - /// or - /// methods. - /// - public string TagNamePrefix { get; set; } - - /// - /// Allocates some room to put some tags. - /// - /// The amount of space to allocate. - /// The index in the where to store the tags. - public int ReserveTagSpace(int count); - - /// - /// Allocates some room to put some tags. - /// - /// The amount of space to allocate. - /// The index in the where to store the classified tags. - public int ReserveClassifiedTagSpace(int count); - - /// - /// Adds a tag to the array. - /// - /// The name of the tag. - /// The value. - public void AddTag(string name, object? value); - - /// - /// Adds a classified tag to the array. - /// - /// The name of the tag. - /// The value. - /// The data classification of the tag. - public void AddClassifiedTag(string name, object? value, DataClassification classification); - - /// - /// Resets state of this object to its initial condition. - /// - public void Clear(); - - /// - /// Returns a string representation of this object. - /// - /// The string representation of this object. - public override string ToString(); - - public LoggerMessageState(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/LoggingEnrichmentExtensions.cs b/API/WithDocs/Microsoft.Extensions.Logging/LoggingEnrichmentExtensions.cs deleted file mode 100644 index cd87bec6acd..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/LoggingEnrichmentExtensions.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -using System; -using Microsoft.Extensions.Configuration; - -namespace Microsoft.Extensions.Logging; - -/// -/// Extensions for configuring logging enrichment features. -/// -public static class LoggingEnrichmentExtensions -{ - /// - /// Enables enrichment functionality within the logging infrastructure. - /// - /// The dependency injection container to add logging to. - /// The value of . - public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder); - - /// - /// Enables enrichment functionality within the logging infrastructure. - /// - /// The dependency injection container to add logging to. - /// Delegate the fine-tune the options. - /// The value of . - public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, Action configure); - - /// - /// Enables enrichment functionality within the logging infrastructure. - /// - /// The dependency injection container to add logging to. - /// Configuration section that contains . - /// The value of . - public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, IConfigurationSection section); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/LoggingRedactionExtensions.cs b/API/WithDocs/Microsoft.Extensions.Logging/LoggingRedactionExtensions.cs deleted file mode 100644 index 11937df46cc..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/LoggingRedactionExtensions.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry' - -namespace Microsoft.Extensions.Logging; - -/// -/// Extensions for configuring logging redaction features. -/// -public static class LoggingRedactionExtensions -{ - /// - /// Enables redaction functionality within the logging infrastructure. - /// - /// The dependency injection container to add logging to. - /// The value of . - public static ILoggingBuilder EnableRedaction(this ILoggingBuilder builder); -} diff --git a/API/WithDocs/Microsoft.Extensions.Logging/TagProviderAttribute.cs b/API/WithDocs/Microsoft.Extensions.Logging/TagProviderAttribute.cs deleted file mode 100644 index ae00212153e..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Logging/TagProviderAttribute.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Assembly 'Microsoft.Extensions.Telemetry.Abstractions' - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Logging; - -/// -/// Defines a method to invoke to generate logging tags for a referenced object. -/// -/// -[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class TagProviderAttribute : Attribute -{ - /// - /// Gets the containing the method that provides tags to be logged. - /// - public Type ProviderType { get; } - - /// - /// Gets the name of the method that provides tags to be logged. - /// - public string ProviderMethod { get; } - - /// - /// Gets or sets a value indicating whether to prefix the name of the parameter or property to the generated name of each tag being logged. - /// - /// - /// Defaults to . - /// - public bool OmitReferenceName { get; set; } - - /// - /// Initializes a new instance of the class with custom tags provider. - /// - /// A type containing a method that provides a custom set of tags to log. - /// The name of a method on the provider type which generates a custom set of tags to log. - /// - /// When or is . - /// - /// - /// When is either an empty string or contains only whitespace. - /// - /// - /// You can create your own method that will generate the exact set of tags to log - /// for a given input object. - /// - /// The method referenced by this constructor should be non-generic, static, public and it should have two parameters: - /// - /// - /// First one of type - /// - /// - /// - /// Second one of T? type, where T is a type of logging method parameter that you want to log. - /// - /// - /// - /// - /// - /// - /// [LoggerMessage(1, LogLevel.Warning, "Custom tags for {Param}.")] - /// static partial void LogMethod(ILogger logger, - /// [TagProvider(typeof(CustomProvider), nameof(CustomProvider.GetTagsToLog))] ClassToLog o); - /// - /// public static class CustomProvider - /// { - /// public static void GetTagsToLog(ITagCollector collector, ClassToLog? param) - /// { - /// collector.Add("Custom_tag_name", param?.MyProperty); - /// collector.Add(nameof(ClassToLog.AnotherProperty), param?.AnotherProperty); - /// // ... - /// } - /// } - /// - /// - /// - public TagProviderAttribute(Type providerType, string providerMethod); -} diff --git a/API/WithDocs/Microsoft.Extensions.ObjectPool/DependencyInjectionPoolOptions.cs b/API/WithDocs/Microsoft.Extensions.ObjectPool/DependencyInjectionPoolOptions.cs deleted file mode 100644 index dc85c4d9609..00000000000 --- a/API/WithDocs/Microsoft.Extensions.ObjectPool/DependencyInjectionPoolOptions.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.ObjectPool.DependencyInjection' - -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.ObjectPool; - -/// -/// Contains configuration for pools. -/// -[Experimental("EXTEXP0010", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public sealed class DependencyInjectionPoolOptions -{ - /// - /// Gets or sets the maximal capacity of the pool. - /// - /// - /// The default is 1024. - /// - public int Capacity { get; set; } - - public DependencyInjectionPoolOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.ObjectPool/ObjectPoolServiceCollectionExtensions.cs b/API/WithDocs/Microsoft.Extensions.ObjectPool/ObjectPoolServiceCollectionExtensions.cs deleted file mode 100644 index e14ff6f4ee9..00000000000 --- a/API/WithDocs/Microsoft.Extensions.ObjectPool/ObjectPoolServiceCollectionExtensions.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Assembly 'Microsoft.Extensions.ObjectPool.DependencyInjection' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.ObjectPool; - -/// -/// Extension methods for adding to DI container. -/// -[Experimental("EXTEXP0010", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class ObjectPoolServiceCollectionExtensions -{ - /// - /// Adds an and lets DI return scoped instances of TService. - /// - /// The to add to. - /// The action used to configure the options of the pool. - /// The type of objects to pool. - /// Provided service collection. - /// is . - /// - /// The default capacity is 1024. - /// The pooled type instances are obtainable by resolving from the DI container. - /// - public static IServiceCollection AddPooled<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services, Action? configure = null) where TService : class; - - /// - /// Adds an and let DI return scoped instances of TService. - /// - /// The to add to. - /// Configuration of the pool. - /// The type of objects to pool. - /// The type of the implementation to use. - /// Provided service collection. - /// is . - /// - /// The default capacity is 1024. - /// The pooled type instances are obtainable by resolving from the DI container. - /// - public static IServiceCollection AddPooled(this IServiceCollection services, Action? configure = null) where TService : class where TImplementation : class, TService; - - /// - /// Registers an action used to configure the of a typed pool. - /// - /// The type of objects to pool. - /// The to add the services to. - /// The action used to configure the options. - /// The so that additional calls can be chained. - public static IServiceCollection ConfigurePool(this IServiceCollection services, Action configure) where TService : class; - - /// - /// Configures DI pools. - /// - /// The to add to. - /// The configuration section to bind. - /// The so that additional calls can be chained. - public static IServiceCollection ConfigurePools(this IServiceCollection services, IConfigurationSection section); -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/ContextualOptionsServiceCollectionExtensions.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/ContextualOptionsServiceCollectionExtensions.cs deleted file mode 100644 index abdc7bd646c..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/ContextualOptionsServiceCollectionExtensions.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Extension methods for adding contextual options services to the DI container. -/// -public static class ContextualOptionsServiceCollectionExtensions -{ - /// - /// Adds services required for using contextual options. - /// - /// The to add the services to. - /// The so that additional calls can be chained. - public static IServiceCollection AddContextualOptions(this IServiceCollection services); - - /// - /// Registers an action used to configure a particular type of options. - /// - /// The options type to be configured. - /// The to add the services to. - /// The action used to configure the options. - /// The so that additional calls can be chained. - public static IServiceCollection Configure(this IServiceCollection services, Func>> loadOptions) where TOptions : class; - - /// - /// Registers an action used to configure a particular type of options. - /// - /// The options type to be configured. - /// The to add the services to. - /// The name of the options to configure. - /// The action used to configure the options. - /// The so that additional calls can be chained. - public static IServiceCollection Configure(this IServiceCollection services, string name, Func>> loadOptions) where TOptions : class; - - /// - /// Registers an action used to configure a particular type of options. - /// - /// The options type to be configured. - /// The to add the services to. - /// The action used to configure the options. - /// The so that additional calls can be chained. - public static IServiceCollection Configure(this IServiceCollection services, Action configureOptions) where TOptions : class; - - /// - /// Registers an action used to configure a particular type of options. - /// - /// The options type to be configured. - /// The to add the services to. - /// The name of the options to configure. - /// The action used to configure the options. - /// The so that additional calls can be chained. - public static IServiceCollection Configure(this IServiceCollection services, string name, Action configureOptions) where TOptions : class; - - /// - /// Registers an action used to initialize all instances of a particular type of options. - /// - /// The options type to be configured. - /// The to add the services to. - /// The action used to configure the options. - /// The so that additional calls can be chained. - public static IServiceCollection PostConfigureAll(this IServiceCollection services, Action configureOptions) where TOptions : class; - - /// - /// Registers an action used to initialize a particular type of options. - /// - /// The options type to be configured. - /// The to add the services to. - /// The action used to configure the options. - /// The so that additional calls can be chained. - public static IServiceCollection PostConfigure(this IServiceCollection services, Action configureOptions) where TOptions : class; - - /// - /// Registers an action used to initialize a particular type of options. - /// - /// The options type to be configured. - /// The to add the services to. - /// The name of the options instance. - /// The action used to configure the options. - /// The so that additional calls can be chained. - public static IServiceCollection PostConfigure(this IServiceCollection services, string? name, Action configureOptions) where TOptions : class; - - /// - /// Register a validation action for an options type. - /// - /// The options type to be validated. - /// The to add the services to. - /// The validation function. - /// The failure message to use when validation fails. - /// The so that additional calls can be chained. - public static IServiceCollection ValidateContextualOptions(this IServiceCollection services, Func validate, string failureMessage) where TOptions : class; - - /// - /// Register a validation action for an options type. - /// - /// The options type to be validated. - /// The to add the services to. - /// The name of the options instance. - /// The validation function. - /// The failure message to use when validation fails. - /// The so that additional calls can be chained. - public static IServiceCollection ValidateContextualOptions(this IServiceCollection services, string name, Func validate, string failureMessage) where TOptions : class; -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IConfigureContextualOptions.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/IConfigureContextualOptions.cs deleted file mode 100644 index 801b16b8900..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IConfigureContextualOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System; - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Represents something that configures the type. -/// -/// The type of options configured. -public interface IConfigureContextualOptions : IDisposable where TOptions : class -{ - /// - /// Invoked to configure a instance. - /// - /// The options instance to configure. - void Configure(TOptions options); -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IContextualOptions.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/IContextualOptions.cs deleted file mode 100644 index 6824d88dc8a..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IContextualOptions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Used to retrieve configured instances. -/// -/// The type of options being requested. -public interface IContextualOptions where TOptions : class -{ - /// - /// Gets the configured instance. - /// - /// A type defining the context for this request. - /// The context that will be used to create the options. - /// The token to monitor for cancellation requests. - /// A configured instance of . - ValueTask GetAsync(in TContext context, CancellationToken cancellationToken) where TContext : IOptionsContext; -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IContextualOptionsFactory.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/IContextualOptionsFactory.cs deleted file mode 100644 index 89da7184cdc..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IContextualOptionsFactory.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// A factory to create instances of . -/// -/// The type of options being created. -public interface IContextualOptionsFactory where TOptions : class -{ - /// - /// Creates the configured instance. - /// - /// A type defining the context for this request. - /// The name of the options to create. - /// The context that will be used to create the options. - /// The token to monitor for cancellation requests. - /// A configured instance of . - ValueTask CreateAsync(string name, in TContext context, CancellationToken cancellationToken) where TContext : IOptionsContext; -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/ILoadContextualOptions.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/ILoadContextualOptions.cs deleted file mode 100644 index a0c246b1a0d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/ILoadContextualOptions.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Used to retrieve named configuration data from a contextual options provider implementation. -/// -/// The type of options configured. -public interface ILoadContextualOptions where TOptions : class -{ - /// - /// Gets the data to configure an instance of . - /// - /// A type defining the context for this request. - /// The name of the options to configure. - /// The context that will be used to configure the options. - /// The token to monitor for cancellation requests. - /// An object to configure an instance of . - ValueTask> LoadAsync(string name, in TContext context, CancellationToken cancellationToken) where TContext : IOptionsContext; -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/INamedContextualOptions.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/INamedContextualOptions.cs deleted file mode 100644 index 19210b8f704..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/INamedContextualOptions.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Used to retrieve named configured instances. -/// -/// The type of options being requested. -public interface INamedContextualOptions : IContextualOptions where TOptions : class -{ - /// - /// Gets the named configured instance. - /// - /// A type defining the context for this request. - /// The name of the options to get. - /// The context that will be used to create the options. - /// The token to monitor for cancellation requests. - /// A configured instance of . - ValueTask GetAsync(string name, in TContext context, CancellationToken cancellationToken) where TContext : IOptionsContext; -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IOptionsContext.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/IOptionsContext.cs deleted file mode 100644 index ff9387d8074..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IOptionsContext.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// The context used to configure contextual options. -/// -public interface IOptionsContext -{ - /// - /// Passes context data to a contextual options provider. - /// - /// The type that the contextual options provider uses to collect context. - /// The object that the contextual options provider uses to collect the context. - void PopulateReceiver(T receiver) where T : IOptionsContextReceiver; -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IOptionsContextReceiver.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/IOptionsContextReceiver.cs deleted file mode 100644 index 2e6811f89f3..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IOptionsContextReceiver.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Used by contextual options providers to collect context data. -/// -public interface IOptionsContextReceiver -{ - /// - /// Add a key-value pair to the context. - /// - /// The type of the data. - /// The name of the data. - /// The data used to determine how to populate contextual options. - void Receive(string key, T value); -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IPostConfigureContextualOptions.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/IPostConfigureContextualOptions.cs deleted file mode 100644 index d31d94b59e5..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IPostConfigureContextualOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Represents something that configures the type. -/// -/// Options type being configured. -public interface IPostConfigureContextualOptions where TOptions : class -{ - /// - /// Invoked to configure a instance. - /// - /// Options type being configured. - /// The name of the options instance being configured. - /// The context that will be used to configure the options. - /// The options instance to configured. - void PostConfigure(string name, in TContext context, TOptions options) where TContext : IOptionsContext; -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IValidateContextualOptions.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/IValidateContextualOptions.cs deleted file mode 100644 index be020cb212b..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/IValidateContextualOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Interface used to validate options. -/// -/// The options type to validate. -public interface IValidateContextualOptions where TOptions : class -{ - /// - /// Validates a specific named options instance (or all when name is null). - /// - /// The name of the options instance being validated. - /// The options instance. - /// The result. - ValidateOptionsResult Validate(string? name, TOptions options); -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/NullConfigureContextualOptions.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/NullConfigureContextualOptions.cs deleted file mode 100644 index 87fdbc633bd..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/NullConfigureContextualOptions.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Helper class. -/// -public static class NullConfigureContextualOptions -{ - /// - /// Gets a singleton instance of . - /// - /// The options type to configure. - /// A do-nothing instance of . - public static IConfigureContextualOptions GetInstance() where TOptions : class; -} diff --git a/API/WithDocs/Microsoft.Extensions.Options.Contextual/OptionsContextAttribute.cs b/API/WithDocs/Microsoft.Extensions.Options.Contextual/OptionsContextAttribute.cs deleted file mode 100644 index 258201679c6..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Options.Contextual/OptionsContextAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Assembly 'Microsoft.Extensions.Options.Contextual' - -using System; -using System.Diagnostics; - -namespace Microsoft.Extensions.Options.Contextual; - -/// -/// Generates an implementation of for the annotated type. -/// -[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] -[Conditional("CODE_GENERATION_ATTRIBUTES")] -public sealed class OptionsContextAttribute : Attribute -{ - public OptionsContextAttribute(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsBase.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsBase.cs deleted file mode 100644 index 55ddddf5154..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsBase.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Chaos policy options base class. -/// -public class ChaosPolicyOptionsBase -{ - /// - /// Gets or sets a value indicating whether - /// a chaos policy should be enabled or not. - /// - /// - /// The default value is . - /// - public bool Enabled { get; set; } - - /// - /// Gets or sets the injection rate. - /// - /// - /// The value should be a decimal between 0 and 1 inclusive, - /// and it indicates the rate at which a chaos policy injects faults. - /// 0 indicates an injection rate of 0% while 1 indicates an injection rate of 100%. - /// Default is set to 0.1. - /// - [Range(0, 1)] - public double FaultInjectionRate { get; set; } - - /// - /// Initializes a new instance of the class. - /// - protected ChaosPolicyOptionsBase(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsGroup.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsGroup.cs deleted file mode 100644 index 3908f875235..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ChaosPolicyOptionsGroup.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Class for chaos policy options group. -/// -public class ChaosPolicyOptionsGroup -{ - /// - /// Gets or sets the latency policy options of the chaos policy options group. - /// - /// - /// The default value is . - /// - [ValidateObjectMembers] - public LatencyPolicyOptions? LatencyPolicyOptions { get; set; } - - /// - /// Gets or sets the http response injection policy options of the chaos policy options group. - /// - /// - /// The default value is . - /// - [ValidateObjectMembers] - public HttpResponseInjectionPolicyOptions? HttpResponseInjectionPolicyOptions { get; set; } - - /// - /// Gets or sets the exception policy options of the chaos policy options group. - /// - /// - /// The default value is . - /// - [ValidateObjectMembers] - public ExceptionPolicyOptions? ExceptionPolicyOptions { get; set; } - - /// - /// Gets or sets the custom result policy options of the chaos policy options group. - /// - [ValidateObjectMembers] - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public CustomResultPolicyOptions? CustomResultPolicyOptions { get; set; } - - public ChaosPolicyOptionsGroup(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/CustomResultPolicyOptions.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/CustomResultPolicyOptions.cs deleted file mode 100644 index 18048487b90..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/CustomResultPolicyOptions.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Custom Result chaos policy options definition. -/// -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public class CustomResultPolicyOptions : ChaosPolicyOptionsBase -{ - /// - /// Gets or sets the custom result key. - /// - /// - /// The default is . - /// - /// - /// This key is used for fetching the custom defined result object - /// from . - /// - [Required] - public string CustomResultKey { get; set; } - - public CustomResultPolicyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ExceptionPolicyOptions.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ExceptionPolicyOptions.cs deleted file mode 100644 index 8ac5b34a650..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/ExceptionPolicyOptions.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Class for exception policy options definition. -/// -public class ExceptionPolicyOptions : ChaosPolicyOptionsBase -{ - /// - /// Gets or sets the exception key. - /// - /// - /// This key is used for fetching an exception instance - /// from . - /// Default is set to "DefaultException". - /// - public string ExceptionKey { get; set; } - - public ExceptionPolicyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionExtensions.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionExtensions.cs deleted file mode 100644 index aa11e9a953d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionExtensions.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Polly; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Provides extension methods for Fault-Injection library. -/// -public static class FaultInjectionExtensions -{ - /// - /// Registers default implementations for and . - /// - /// The services collection. - /// - /// The so that additional calls can be chained. - /// - /// - /// Any parameter is . - /// - public static IServiceCollection AddFaultInjection(this IServiceCollection services); - - /// - /// Configures and registers default implementations for - /// and . - /// - /// The services collection. - /// - /// The configuration section to bind to . - /// - /// - /// The so that additional calls can be chained. - /// - /// - /// Any parameter is . - /// - public static IServiceCollection AddFaultInjection(this IServiceCollection services, IConfiguration section); - - /// - /// Calls the given action to configure and registers default implementations for - /// and . - /// - /// The services collection. - /// Function to configure . - /// - /// The so that additional calls can be chained. - /// - /// - /// Any parameter is . - /// - public static IServiceCollection AddFaultInjection(this IServiceCollection services, Action configure); - - /// - /// Associates the given instance to the given identifier name - /// for an registered at . - /// - /// The context instance. - /// The identifier name for an . - /// - /// The so that additional calls can be chained. - /// - /// - /// Any argument is . - /// - public static Context WithFaultInjection(this Context context, string groupName); - - /// - /// Associates to the calling instance, where - /// will be used to determine which to use at each fault-injection run. - /// - /// The context instance. - /// The fault policy weight assignment. - /// - /// The so that additional calls can be chained. - /// - /// - /// Any argument is . - /// - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public static Context WithFaultInjection(this Context context, FaultPolicyWeightAssignmentsOptions weightAssignments); - - /// - /// Gets the name of the registered from . - /// - /// The context instance. - /// - /// The if registered; if it isn't. - /// - /// - /// Any argument is . - /// - public static string? GetFaultInjectionGroupName(this Context context); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptions.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptions.cs deleted file mode 100644 index 5cf038a9cd4..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Class to contain fault injection options provider option values loaded from configuration sources. -/// -public class FaultInjectionOptions -{ - /// - /// Gets or sets the dictionary that stores . - /// - public IDictionary ChaosPolicyOptionsGroups { get; set; } - - public FaultInjectionOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptionsBuilder.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptionsBuilder.cs deleted file mode 100644 index 1a79bc79854..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultInjectionOptionsBuilder.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Builder class to provide options configuration methods for -/// and . -/// -public class FaultInjectionOptionsBuilder -{ - /// - /// Initializes a new instance of the class. - /// - /// The services collection. - /// - /// Any parameter is . - /// - public FaultInjectionOptionsBuilder(IServiceCollection services); - - /// - /// Configures default . - /// - /// - /// The builder object itself so that additional calls can be chained. - /// - public FaultInjectionOptionsBuilder Configure(); - - /// - /// Configures through - /// the provided . - /// - /// - /// The configuration section to bind to . - /// - /// The builder object itself so that additional calls can be chained. - /// - /// Any parameter is . - /// - public FaultInjectionOptionsBuilder Configure(IConfiguration section); - - /// - /// Configures through - /// the provided configure. - /// - /// - /// The function to be registered to configure . - /// - /// The builder object itself so that additional calls can be chained. - /// - /// Any parameter is . - /// - public FaultInjectionOptionsBuilder Configure(Action configureOptions); - - /// - /// Add an exception instance to . - /// - /// The identifier for the exception instance to be added. - /// The exception instance to be added. - /// The builder object itself so that additional calls can be chained. - /// - /// is . - /// - /// - /// is an empty string or . - /// - public FaultInjectionOptionsBuilder AddException(string key, Exception exception); - - /// - /// Add a custom result object instance to . - /// - /// The identifier for the custom result object instance to be added. - /// The custom result object instance to be added. - /// The builder object itself so that additional calls can be chained. - /// - /// is . - /// - /// - /// is an empty string or . - /// - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - public FaultInjectionOptionsBuilder AddCustomResult(string key, object customResult); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultPolicyWeightAssignmentsOptions.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultPolicyWeightAssignmentsOptions.cs deleted file mode 100644 index 92297f13ea0..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/FaultPolicyWeightAssignmentsOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Contains fault-injection policy weight assignments. -/// -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public class FaultPolicyWeightAssignmentsOptions -{ - /// - /// Gets or sets the dictionary that defines fault policy weight assignments. - /// - /// - /// The key of an entry is the identifier name of a chaos policy, while the value of an entry is the weight value for the chaos policy. - /// The weight value ranges from 0 to 100. 0 translates to 0%, and 100 translates to 100%. The total weight should add up to 100. - /// - public IDictionary WeightAssignments { get; set; } - - public FaultPolicyWeightAssignmentsOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/HttpResponseInjectionPolicyOptions.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/HttpResponseInjectionPolicyOptions.cs deleted file mode 100644 index 3cb22714849..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/HttpResponseInjectionPolicyOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.ComponentModel.DataAnnotations; -using System.Net; -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Class for http response injection policy options definition. -/// -public class HttpResponseInjectionPolicyOptions : ChaosPolicyOptionsBase -{ - /// - /// Gets or sets the status code to inject. - /// - /// - /// Default is set to . - /// - [EnumDataType(typeof(HttpStatusCode))] - public HttpStatusCode StatusCode { get; set; } - - /// - /// Gets or sets the key to retrieve custom response settings. - /// - /// - /// This field is optional and it defaults to . - /// - public string? HttpContentKey { get; set; } - - public HttpResponseInjectionPolicyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/IChaosPolicyFactory.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/IChaosPolicyFactory.cs deleted file mode 100644 index d7142f43f48..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/IChaosPolicyFactory.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Diagnostics.CodeAnalysis; -using Polly.Contrib.Simmy.Latency; -using Polly.Contrib.Simmy.Outcomes; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Factory for chaos policy creation. -/// -public interface IChaosPolicyFactory -{ - /// - /// Creates an async latency policy with delegate functions to fetch fault injection - /// settings from . - /// - /// The type of value policies created by this method will inject. - /// - /// A latency policy. - /// - AsyncInjectLatencyPolicy CreateLatencyPolicy(); - - /// - /// Creates an async exception policy with delegate functions to fetch - /// fault injection settings from . - /// - /// - /// An exception policy. - /// - AsyncInjectOutcomePolicy CreateExceptionPolicy(); - - /// - /// Creates an async custom result policy with delegate functions to fetch - /// fault injection settings from . - /// - /// The type of value policies created by this method will inject. - /// A custom result policy. - [Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] - AsyncInjectOutcomePolicy CreateCustomResultPolicy(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/IFaultInjectionOptionsProvider.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/IFaultInjectionOptionsProvider.cs deleted file mode 100644 index 059b2364125..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/IFaultInjectionOptionsProvider.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Interface for fault-injection options provider implementations. -/// -/// -/// A fault-injection options provider is intended to retain chaos policy configurations and -/// to allow instances to be retrieved by other services. -/// -public interface IFaultInjectionOptionsProvider -{ - /// - /// Gets an instance of from the provider by the options group name. - /// - /// The chaos policy options group name. - /// - /// The associated with the options group name if it is found; otherwise, . - /// - /// - /// if the associated with the options group name if it is found; otherwise, . - /// - bool TryGetChaosPolicyOptionsGroup(string optionsGroupName, [NotNullWhen(true)] out ChaosPolicyOptionsGroup? optionsGroup); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/InjectedFaultException.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/InjectedFaultException.cs deleted file mode 100644 index 16ba5f0a3d4..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/InjectedFaultException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// An exception class that should only be used for fault injection purposes. -/// -public class InjectedFaultException : Exception -{ - /// - /// Initializes a new instance of the class. - /// - public InjectedFaultException(); - - /// - /// Initializes a new instance of the class. - /// - /// The error message that explains the reason for the exception. - public InjectedFaultException(string message); - - /// - /// Initializes a new instance of the class. - /// - /// The error message that explains the reason for the exception. - /// - /// The exception that is the cause of the current exception, - /// or a reference (Nothing in Visual Basic) if no inner exception is specified. - /// - public InjectedFaultException(string message, Exception innerException); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/LatencyPolicyOptions.cs b/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/LatencyPolicyOptions.cs deleted file mode 100644 index 298fff2c521..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience.FaultInjection/LatencyPolicyOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; -using System.Runtime.CompilerServices; -using Microsoft.Shared.Data.Validation; - -namespace Microsoft.Extensions.Resilience.FaultInjection; - -/// -/// Class for latency policy options definition. -/// -public class LatencyPolicyOptions : ChaosPolicyOptionsBase -{ - /// - /// Gets or sets the latency value to inject. - /// - /// - /// The value should be between 0 seconds to 10 minutes. - /// Default is set to 30 seconds. - /// - [TimeSpan("00:00:00", "00:10:00")] - public TimeSpan Latency { get; set; } - - public LatencyPolicyOptions(); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience/FailureResultContext.cs b/API/WithDocs/Microsoft.Extensions.Resilience/FailureResultContext.cs deleted file mode 100644 index 8fd5738114d..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience/FailureResultContext.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Runtime.CompilerServices; - -namespace Microsoft.Extensions.Resilience; - -/// -/// Captures the dimensions metered for a transient failure result. -/// -public readonly struct FailureResultContext -{ - /// - /// Gets the source of the failure presented in the delegate result. - /// - public string FailureSource { get; } - - /// - /// Gets the reason of the failure presented in the delegate result. - /// - public string FailureReason { get; } - - /// - /// Gets additional information of the failure presented in the delegate result. - /// - public string AdditionalInformation { get; } - - /// - /// Initializes a new instance of the structure. - /// - /// The source of the failure. - /// The reason of the failure. - /// Additional information for the failure. - /// To be added. - public static FailureResultContext Create(string failureSource = "unknown", string failureReason = "unknown", string additionalInformation = "unknown"); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience/ResilienceContextExtensions.cs b/API/WithDocs/Microsoft.Extensions.Resilience/ResilienceContextExtensions.cs deleted file mode 100644 index f97a4d5355b..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience/ResilienceContextExtensions.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.Http.Diagnostics; -using Polly; - -namespace Microsoft.Extensions.Resilience; - -/// -/// Extensions for . -/// -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class ResilienceContextExtensions -{ - /// - /// Sets the to the . - /// - /// The context instance. - /// The request metadata. - /// or is . - public static void SetRequestMetadata(this ResilienceContext context, RequestMetadata requestMetadata); - - /// - /// Gets the from the . - /// - /// The context instance. - /// The instance of or . - /// is . - public static RequestMetadata? GetRequestMetadata(this ResilienceContext context); -} diff --git a/API/WithDocs/Microsoft.Extensions.Resilience/ResilienceServiceCollectionExtensions.cs b/API/WithDocs/Microsoft.Extensions.Resilience/ResilienceServiceCollectionExtensions.cs deleted file mode 100644 index 35a9d7fc7c2..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Resilience/ResilienceServiceCollectionExtensions.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Assembly 'Microsoft.Extensions.Resilience' - -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.Resilience; - -/// -/// Extension class for the Service Collection DI container. -/// -[Experimental("EXTEXP0001", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")] -public static class ResilienceServiceCollectionExtensions -{ - /// - /// Adds resilience enrichers. - /// - /// The services. - /// The input . - /// - /// This method adds additional dimensions on top of the default ones that are built-in to the Polly library. These include: - /// - /// - /// Exception enrichment based on . - /// - /// - /// Result enrichment based on and . - /// - /// - /// Request metadata enrichment based on . - /// - /// - /// - /// is . - public static IServiceCollection AddResilienceEnrichment(this IServiceCollection services); - - /// - /// Configures the failure result dimensions. - /// - /// The type of the policy result. - /// The services. - /// The configure result dimensions. - /// The input . - /// - /// or is . - /// - public static IServiceCollection ConfigureFailureResultContext(this IServiceCollection services, Func configure); -} diff --git a/API/WithDocs/Microsoft.Extensions.Time.Testing/FakeTimeProvider.cs b/API/WithDocs/Microsoft.Extensions.Time.Testing/FakeTimeProvider.cs deleted file mode 100644 index 5ea4f0a728b..00000000000 --- a/API/WithDocs/Microsoft.Extensions.Time.Testing/FakeTimeProvider.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Assembly 'Microsoft.Extensions.TimeProvider.Testing' - -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Microsoft.Extensions.Time.Testing; - -/// -/// Represents a synthetic time provider that can be used to enable deterministic behavior in tests. -/// -public class FakeTimeProvider : TimeProvider -{ - /// - /// Gets the starting date and time for this provider. - /// - public DateTimeOffset Start { get; } - - /// - /// Gets or sets the amount of time by which time advances whenever the clock is read. - /// - /// - /// This defaults to . - /// - /// if the time value is set to less than . - public TimeSpan AutoAdvanceAmount { get; set; } - - /// - public override TimeZoneInfo LocalTimeZone { get; } - - /// - /// Gets the amount by which the value from increments per second. - /// - /// - /// This is fixed to the value of . - /// - public override long TimestampFrequency { get; } - - /// - /// Initializes a new instance of the class. - /// - /// - /// This creates a provider whose time is initially set to midnight January 1st 2000. - /// The provider is set to not automatically advance time each time it is read. - /// - public FakeTimeProvider(); - - /// - /// Initializes a new instance of the class. - /// - /// The initial time and date reported by the provider. - /// - /// The provider is set to not automatically advance time each time it is read. - /// - public FakeTimeProvider(DateTimeOffset startDateTime); - - /// - public override DateTimeOffset GetUtcNow(); - - /// - /// Sets the date and time in the UTC time zone. - /// - /// The date and time in the UTC time zone. - /// if the supplied time value is before the curent time. - public void SetUtcNow(DateTimeOffset value); - - /// - /// Advances time by a specific amount. - /// - /// The amount of time to advance the clock by. - /// - /// Advancing time affects the timers created from this provider, and all other operations that are directly or - /// indirectly using this provider as a time source. Whereas when using , time - /// marches forward automatically in hardware, for the fake time provider the application is responsible for - /// doing this explicitly by calling this method. - /// - /// if the time value is less than . - public void Advance(TimeSpan delta); - - /// - public override long GetTimestamp(); - - /// - /// Sets the local time zone. - /// - /// The local time zone. - public void SetLocalTimeZone(TimeZoneInfo localTimeZone); - - /// - /// Returns a string representation this provider's idea of current time. - /// - /// A string representing the provider's current time. - public override string ToString(); - - /// - public override ITimer CreateTimer(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period); -} diff --git a/src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/FakeConfigurationSource.cs b/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeConfigurationSource.cs similarity index 88% rename from src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/FakeConfigurationSource.cs rename to src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeConfigurationSource.cs index 11faffae0bd..b9ae2f94b6d 100644 --- a/src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/FakeConfigurationSource.cs +++ b/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeConfigurationSource.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using Microsoft.Extensions.Configuration.Memory; -namespace Microsoft.Extensions.Hosting.Testing.Internal; +namespace Microsoft.Extensions.Hosting; internal sealed class FakeConfigurationSource : MemoryConfigurationSource { diff --git a/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHost.cs b/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHost.cs index 003a32af5a8..f8ccc54cf97 100644 --- a/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHost.cs +++ b/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHost.cs @@ -5,7 +5,6 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Hosting.Testing.Internal; using Microsoft.Shared.Diagnostics; namespace Microsoft.Extensions.Hosting.Testing; diff --git a/src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/FakeHostBuilder.cs b/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHostBuilder.cs similarity index 97% rename from src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/FakeHostBuilder.cs rename to src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHostBuilder.cs index 998658d89e6..a5fa1d78283 100644 --- a/src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/FakeHostBuilder.cs +++ b/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHostBuilder.cs @@ -7,11 +7,10 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; -using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Testing; -namespace Microsoft.Extensions.Hosting.Testing.Internal; +namespace Microsoft.Extensions.Hosting.Testing; internal sealed class FakeHostBuilder : IHostBuilder { diff --git a/src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/HostTerminatorService.cs b/src/Libraries/Microsoft.Extensions.Hosting.Testing/HostTerminatorService.cs similarity index 97% rename from src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/HostTerminatorService.cs rename to src/Libraries/Microsoft.Extensions.Hosting.Testing/HostTerminatorService.cs index 56ab75a55af..54b807a1a14 100644 --- a/src/Libraries/Microsoft.Extensions.Hosting.Testing/Internal/HostTerminatorService.cs +++ b/src/Libraries/Microsoft.Extensions.Hosting.Testing/HostTerminatorService.cs @@ -8,7 +8,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace Microsoft.Extensions.Hosting.Testing.Internal; +namespace Microsoft.Extensions.Hosting.Testing; /// /// Terminates its host after a timeout set in . diff --git a/src/Libraries/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs b/src/Libraries/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs index f0008e5c7d7..cf002e947fb 100644 --- a/src/Libraries/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs +++ b/src/Libraries/Microsoft.Extensions.Hosting.Testing/HostingFakesExtensions.cs @@ -9,8 +9,6 @@ using System.Threading.Tasks; using Microsoft.Extensions.Compliance.Testing; using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Hosting.Testing.Internal; using Microsoft.Extensions.Logging.Testing; using Microsoft.Shared.DiagnosticIds; using Microsoft.Shared.Diagnostics; diff --git a/src/Libraries/Microsoft.Extensions.Hosting.Testing/Microsoft.Extensions.Hosting.Testing.csproj b/src/Libraries/Microsoft.Extensions.Hosting.Testing/Microsoft.Extensions.Hosting.Testing.csproj index c8d63fd7e8c..953e70b2ff8 100644 --- a/src/Libraries/Microsoft.Extensions.Hosting.Testing/Microsoft.Extensions.Hosting.Testing.csproj +++ b/src/Libraries/Microsoft.Extensions.Hosting.Testing/Microsoft.Extensions.Hosting.Testing.csproj @@ -1,4 +1,4 @@ - + Microsoft.Extensions.Hosting Testing for integration test hosting and related test oriented helpers @@ -26,7 +26,7 @@ - + diff --git a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/DeleteAttribute.cs b/src/Libraries/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs similarity index 100% rename from src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/DeleteAttribute.cs rename to src/Libraries/Microsoft.Extensions.Http.AutoClient/DeleteAttribute.cs diff --git a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/GetAttribute.cs b/src/Libraries/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs similarity index 100% rename from src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/GetAttribute.cs rename to src/Libraries/Microsoft.Extensions.Http.AutoClient/GetAttribute.cs diff --git a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/HeadAttribute.cs b/src/Libraries/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs similarity index 100% rename from src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/HeadAttribute.cs rename to src/Libraries/Microsoft.Extensions.Http.AutoClient/HeadAttribute.cs diff --git a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Microsoft.Extensions.Http.AutoClient.csproj b/src/Libraries/Microsoft.Extensions.Http.AutoClient/Microsoft.Extensions.Http.AutoClient.csproj index 195b5f8739a..2cf70b3efb3 100644 --- a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Microsoft.Extensions.Http.AutoClient.csproj +++ b/src/Libraries/Microsoft.Extensions.Http.AutoClient/Microsoft.Extensions.Http.AutoClient.csproj @@ -36,5 +36,5 @@ - + diff --git a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/OptionsAttribute.cs b/src/Libraries/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs similarity index 100% rename from src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/OptionsAttribute.cs rename to src/Libraries/Microsoft.Extensions.Http.AutoClient/OptionsAttribute.cs diff --git a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/PatchAttribute.cs b/src/Libraries/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs similarity index 100% rename from src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/PatchAttribute.cs rename to src/Libraries/Microsoft.Extensions.Http.AutoClient/PatchAttribute.cs diff --git a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/PostAttribute.cs b/src/Libraries/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs similarity index 100% rename from src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/PostAttribute.cs rename to src/Libraries/Microsoft.Extensions.Http.AutoClient/PostAttribute.cs diff --git a/src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/PutAttribute.cs b/src/Libraries/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs similarity index 100% rename from src/Libraries/Microsoft.Extensions.Http.AutoClient/Methods/PutAttribute.cs rename to src/Libraries/Microsoft.Extensions.Http.AutoClient/PutAttribute.cs diff --git a/src/Libraries/Microsoft.Extensions.Http.Resilience/Microsoft.Extensions.Http.Resilience.csproj b/src/Libraries/Microsoft.Extensions.Http.Resilience/Microsoft.Extensions.Http.Resilience.csproj index f73ace16783..5288e46cda7 100644 --- a/src/Libraries/Microsoft.Extensions.Http.Resilience/Microsoft.Extensions.Http.Resilience.csproj +++ b/src/Libraries/Microsoft.Extensions.Http.Resilience/Microsoft.Extensions.Http.Resilience.csproj @@ -33,14 +33,10 @@ - - - - diff --git a/src/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection/Microsoft.Extensions.ObjectPool.DependencyInjection.csproj b/src/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection/Microsoft.Extensions.ObjectPool.DependencyInjection.csproj index c66fc3894ab..623a961efa9 100644 --- a/src/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection/Microsoft.Extensions.ObjectPool.DependencyInjection.csproj +++ b/src/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection/Microsoft.Extensions.ObjectPool.DependencyInjection.csproj @@ -17,7 +17,6 @@ - diff --git a/src/Libraries/Microsoft.Extensions.Telemetry.Testing/Microsoft.Extensions.Telemetry.Testing.csproj b/src/Libraries/Microsoft.Extensions.Telemetry.Testing/Microsoft.Extensions.Telemetry.Testing.csproj index f6737b37058..a0da8929682 100644 --- a/src/Libraries/Microsoft.Extensions.Telemetry.Testing/Microsoft.Extensions.Telemetry.Testing.csproj +++ b/src/Libraries/Microsoft.Extensions.Telemetry.Testing/Microsoft.Extensions.Telemetry.Testing.csproj @@ -25,7 +25,6 @@ - diff --git a/src/Libraries/Microsoft.Extensions.TimeProvider.Testing/Microsoft.Extensions.TimeProvider.Testing.csproj b/src/Libraries/Microsoft.Extensions.TimeProvider.Testing/Microsoft.Extensions.TimeProvider.Testing.csproj index a08145fed38..9e4ff4ba169 100644 --- a/src/Libraries/Microsoft.Extensions.TimeProvider.Testing/Microsoft.Extensions.TimeProvider.Testing.csproj +++ b/src/Libraries/Microsoft.Extensions.TimeProvider.Testing/Microsoft.Extensions.TimeProvider.Testing.csproj @@ -16,7 +16,6 @@ - diff --git a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeConfigurationSourceTest.cs b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeConfigurationSourceTests.cs similarity index 92% rename from test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeConfigurationSourceTest.cs rename to test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeConfigurationSourceTests.cs index 394a607680f..30f8f7be99e 100644 --- a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeConfigurationSourceTest.cs +++ b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeConfigurationSourceTests.cs @@ -2,12 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using Microsoft.Extensions.Hosting.Testing.Internal; using Xunit; namespace Microsoft.Extensions.Hosting.Testing.Test; -public class FakeConfigurationSourceTest +public class FakeConfigurationSourceTests { [Fact] public void Constructor_KeyValuePairsGiven_PopulatesInitialData() diff --git a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostBuilderTest.cs b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostBuilderTests.cs similarity index 98% rename from test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostBuilderTest.cs rename to test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostBuilderTests.cs index 1ca6d5a3f06..cdcc59c7eea 100644 --- a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostBuilderTest.cs +++ b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostBuilderTests.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting.Testing.Internal; using Microsoft.Extensions.Hosting.Testing.Test.TestResources; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Testing; @@ -14,7 +13,7 @@ namespace Microsoft.Extensions.Hosting.Testing.Test; -public class FakeHostBuilderTest +public class FakeHostBuilderTests { private static readonly FakeHostOptions _noFakesOptions = new() { diff --git a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostTest.cs b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostTests.cs similarity index 99% rename from test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostTest.cs rename to test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostTests.cs index bbfc3e2ab0b..49efadd8f09 100644 --- a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostTest.cs +++ b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/FakeHostTests.cs @@ -13,7 +13,7 @@ namespace Microsoft.Extensions.Hosting.Testing.Test; -public class FakeHostTest +public class FakeHostTests { [Fact] public async Task CreateBuilder_AddsFakeLogging() diff --git a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostTerminatorServiceTest.cs b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostTerminatorServiceTests.cs similarity index 96% rename from test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostTerminatorServiceTest.cs rename to test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostTerminatorServiceTests.cs index f6e5c2c441b..0df48d7c200 100644 --- a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostTerminatorServiceTest.cs +++ b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostTerminatorServiceTests.cs @@ -4,7 +4,6 @@ using System.Reflection; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Hosting.Testing.Internal; using Microsoft.Extensions.Logging.Testing; using Microsoft.Extensions.Time.Testing; using Moq; @@ -12,7 +11,7 @@ namespace Microsoft.Extensions.Hosting.Testing.Test; -public class HostTerminatorServiceTest +public class HostTerminatorServiceTests { [Fact] public async Task ExecuteAsync_ServiceCanceled_DoesNothing() diff --git a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostingFakesExtensionsTest.cs b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostingFakesExtensionsTests.cs similarity index 99% rename from test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostingFakesExtensionsTest.cs rename to test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostingFakesExtensionsTests.cs index 94371b6b257..c731ed6dc1a 100644 --- a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostingFakesExtensionsTest.cs +++ b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/HostingFakesExtensionsTests.cs @@ -7,14 +7,13 @@ using System.Threading.Tasks; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting.Testing.Internal; using Microsoft.Extensions.Logging; using Moq; using Xunit; namespace Microsoft.Extensions.Hosting.Testing.Test; -public class HostingFakesExtensionsTest +public class HostingFakesExtensionsTests { [Fact] public async Task StartAndStop_NullGiven_Throws() diff --git a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/TestResources/DependentClass.cs b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/TestResources/DependentClass.cs index d9fea899c2c..a14c01c94df 100644 --- a/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/TestResources/DependentClass.cs +++ b/test/Libraries/Microsoft.Extensions.Hosting.Testing.Tests/TestResources/DependentClass.cs @@ -5,7 +5,7 @@ namespace Microsoft.Extensions.Hosting.Testing.Test.TestResources; public class DependentClass { - public DependentClass(FakeHostTest _) + public DependentClass(FakeHostTests _) { } } diff --git a/test/Libraries/Microsoft.Extensions.Http.Resilience.Tests/Microsoft.Extensions.Http.Resilience.Tests.csproj b/test/Libraries/Microsoft.Extensions.Http.Resilience.Tests/Microsoft.Extensions.Http.Resilience.Tests.csproj index 3d96980ba3f..c73884f2cfb 100644 --- a/test/Libraries/Microsoft.Extensions.Http.Resilience.Tests/Microsoft.Extensions.Http.Resilience.Tests.csproj +++ b/test/Libraries/Microsoft.Extensions.Http.Resilience.Tests/Microsoft.Extensions.Http.Resilience.Tests.csproj @@ -16,7 +16,7 @@ - + @@ -24,9 +24,6 @@ - - - diff --git a/test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/DependencyInjectionExtensionsTest.cs b/test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/DependencyInjectionExtensionsTests.cs similarity index 99% rename from test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/DependencyInjectionExtensionsTest.cs rename to test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/DependencyInjectionExtensionsTests.cs index 712cdfff788..836a781fab9 100644 --- a/test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/DependencyInjectionExtensionsTest.cs +++ b/test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/DependencyInjectionExtensionsTests.cs @@ -11,7 +11,7 @@ namespace Microsoft.Extensions.ObjectPool.Test; -public class DependencyInjectionExtensionsTest +public class DependencyInjectionExtensionsTests { [Fact] public void AddPooled_Throws_WhenNullService() diff --git a/test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests.csproj b/test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests.csproj index 61bf67e93a4..aa4a887b49e 100644 --- a/test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests.csproj +++ b/test/Libraries/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests/Microsoft.Extensions.ObjectPool.DependencyInjection.Tests.csproj @@ -11,6 +11,5 @@ - diff --git a/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/AcceptanceTest.cs b/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/AcceptanceTests.cs similarity index 99% rename from test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/AcceptanceTest.cs rename to test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/AcceptanceTests.cs index 3964b17927e..dff7f6b56ac 100644 --- a/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/AcceptanceTest.cs +++ b/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/AcceptanceTests.cs @@ -75,7 +75,7 @@ internal class WeatherForecast public string TemperatureScale { get; set; } = string.Empty; } -public class AcceptanceTest +public class AcceptanceTests { [Fact] public async Task Foo() diff --git a/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/ContextualOptionsFactoryTests.cs b/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/ContextualOptionsFactoryTests.cs index 17ec93148e9..9fae5a50bd7 100644 --- a/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/ContextualOptionsFactoryTests.cs +++ b/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/ContextualOptionsFactoryTests.cs @@ -11,7 +11,7 @@ using Moq; using Xunit; -namespace Microsoft.Extensions.Options.Contextual.Tests; +namespace Microsoft.Extensions.Options.Contextual.Test; public class ContextualOptionsFactoryTests { diff --git a/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/ContextualOptionsServiceCollectionExtensionsTests.cs b/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/ContextualOptionsServiceCollectionExtensionsTests.cs index c59764ca6df..118831b4586 100644 --- a/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/ContextualOptionsServiceCollectionExtensionsTests.cs +++ b/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/ContextualOptionsServiceCollectionExtensionsTests.cs @@ -8,7 +8,7 @@ using Moq; using Xunit; -namespace Microsoft.Extensions.Options.Contextual.Tests; +namespace Microsoft.Extensions.Options.Contextual.Test; public class ContextualOptionsServiceCollectionExtensionsTests { diff --git a/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/Microsoft.Extensions.Options.Contextual.Tests.csproj b/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/Microsoft.Extensions.Options.Contextual.Tests.csproj index 8065166531f..d440b8820db 100644 --- a/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/Microsoft.Extensions.Options.Contextual.Tests.csproj +++ b/test/Libraries/Microsoft.Extensions.Options.ContextualOptions.Tests/Microsoft.Extensions.Options.Contextual.Tests.csproj @@ -1,6 +1,6 @@  - Microsoft.Extensions.Options.Contextual + Microsoft.Extensions.Options.Contextual.Test Unit tests for Microsoft.Extensions.Options.Contextual diff --git a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLogCollectorOptionsTests.cs b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLogCollectorOptionsTests.cs index 34491a08c08..9cc56df1391 100644 --- a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLogCollectorOptionsTests.cs +++ b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLogCollectorOptionsTests.cs @@ -4,7 +4,7 @@ using System; using Xunit; -namespace Microsoft.Extensions.Logging.Testing.Test; +namespace Microsoft.Extensions.Logging.Testing.Test.Logging; public class FakeLogCollectorOptionsTests { diff --git a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLogCollectorTests.cs b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLogCollectorTests.cs index 4bfdecd6e2f..69fd33600d6 100644 --- a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLogCollectorTests.cs +++ b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLogCollectorTests.cs @@ -7,7 +7,7 @@ using Xunit; using Xunit.Abstractions; -namespace Microsoft.Extensions.Logging.Testing.Test; +namespace Microsoft.Extensions.Logging.Testing.Test.Logging; public class FakeLogCollectorTests { diff --git a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerExtensionsTests.cs b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerExtensionsTests.cs index 560eda63905..052c1aea7a7 100644 --- a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerExtensionsTests.cs +++ b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerExtensionsTests.cs @@ -9,7 +9,7 @@ using Microsoft.Extensions.Logging.Testing; using Xunit; -namespace Microsoft.Extensions.Logging.Testing.Test; +namespace Microsoft.Extensions.Logging.Testing.Test.Logging; public class FakeLoggerExtensionsTests { diff --git a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerProviderTests.cs b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerProviderTests.cs index 8a7beeefb39..4e067d6c46f 100644 --- a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerProviderTests.cs +++ b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerProviderTests.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.Logging; using Xunit; -namespace Microsoft.Extensions.Logging.Testing.Test; +namespace Microsoft.Extensions.Logging.Testing.Test.Logging; public class FakeLoggerProviderTests { @@ -29,7 +29,7 @@ public void Basic() Assert.Equal(logger.Collector, loggerProvider.Collector); logger.LogDebug("M3"); Assert.Equal(3, logger.Collector.Count); - Assert.Equal("Microsoft.Extensions.Logging.Testing.Test.FakeLoggerProviderTests", logger.LatestRecord.Category); + Assert.Equal("Microsoft.Extensions.Logging.Testing.Test.Logging.FakeLoggerProviderTests", logger.LatestRecord.Category); } [Fact] diff --git a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerTests.cs b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerTests.cs index a56904d240b..59f3c7e802b 100644 --- a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerTests.cs +++ b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/FakeLoggerTests.cs @@ -11,7 +11,7 @@ using Microsoft.Extensions.Time.Testing; using Xunit; -namespace Microsoft.Extensions.Logging.Testing.Test; +namespace Microsoft.Extensions.Logging.Testing.Test.Logging; public class FakeLoggerTests { diff --git a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/TestLog.cs b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/TestLog.cs index 2db9b294392..bcd41bd1fb4 100644 --- a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/TestLog.cs +++ b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Logging/TestLog.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.Logging; -namespace Microsoft.Extensions.Logging.Testing.Test; +namespace Microsoft.Extensions.Logging.Testing.Test.Logging; internal static partial class TestLog { diff --git a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Microsoft.Extensions.Telemetry.Testing.Tests.csproj b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Microsoft.Extensions.Telemetry.Testing.Tests.csproj index ce1f8234bdc..985a30a72ab 100644 --- a/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Microsoft.Extensions.Telemetry.Testing.Tests.csproj +++ b/test/Libraries/Microsoft.Extensions.Telemetry.Testing.Tests/Microsoft.Extensions.Telemetry.Testing.Tests.csproj @@ -1,12 +1,12 @@  - Microsoft.Extensions.Telemetry.Testing + Microsoft.Extensions.Telemetry.Testing.Test Unit tests for Microsoft.Extensions.Telemetry.Testing. - true true + true @@ -15,8 +15,6 @@ - - diff --git a/test/Libraries/Microsoft.Extensions.TimeProvider.Testing.Tests/Microsoft.Extensions.TimeProvider.Testing.Tests.csproj b/test/Libraries/Microsoft.Extensions.TimeProvider.Testing.Tests/Microsoft.Extensions.TimeProvider.Testing.Tests.csproj index 82fe9b7d938..dc4a5be194b 100644 --- a/test/Libraries/Microsoft.Extensions.TimeProvider.Testing.Tests/Microsoft.Extensions.TimeProvider.Testing.Tests.csproj +++ b/test/Libraries/Microsoft.Extensions.TimeProvider.Testing.Tests/Microsoft.Extensions.TimeProvider.Testing.Tests.csproj @@ -1,7 +1,7 @@  Microsoft.Extensions.Time.Testing.Test - Tests for Microsoft.Extensions.TimeProvider.Testing.Testing + Tests for Microsoft.Extensions.TimeProvider.Testing