<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 New Relic Corporation. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
<extension xmlns="urn:newrelic-extension">
  <instrumentation>
    <tracerFactory name="BuildCommonServicesWrapper6Plus">
      <match assemblyName="Microsoft.AspNetCore.Hosting" className="Microsoft.AspNetCore.Hosting.WebHostBuilder"  minVersion="6.0.0.0">
        <exactMethodMatcher methodName="BuildCommonServices" />
      </match>
    </tracerFactory>
    <tracerFactory name="GenericHostWebHostBuilderExtensionsWrapper6Plus">
      <match assemblyName="Microsoft.AspNetCore.Hosting" className="Microsoft.Extensions.Hosting.GenericHostWebHostBuilderExtensions" minVersion="6.0.0.0">
        <exactMethodMatcher methodName="ConfigureWebHost" />
      </match>
    </tracerFactory>
    <tracerFactory name="InvokeActionMethodAsyncWrapper6Plus">
      <match assemblyName="Microsoft.AspNetCore.Mvc.Core" className="Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker" minVersion="6.0.0.0">
        <exactMethodMatcher methodName="InvokeActionMethodAsync" />
      </match>
    </tracerFactory>
    <tracerFactory name="ResponseCompressionBodyOnWriteWrapper">
      <match assemblyName="Microsoft.AspNetCore.ResponseCompression" className="Microsoft.AspNetCore.ResponseCompression.ResponseCompressionBody" minVersion="6.0.0.0">
        <exactMethodMatcher methodName="OnWrite" />
      </match>
    </tracerFactory>
    <tracerFactory name="PageActionInvokeHandlerAsyncWrapper6Plus">
      <match assemblyName="Microsoft.AspNetCore.Mvc.RazorPages" className="Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker" minVersion="6.0.0.0">
        <exactMethodMatcher methodName="InvokeHandlerMethodAsync" />
      </match>
    </tracerFactory>
  </instrumentation>
</extension>
