You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ITraceWriter is registered with ASP.NET Web API some API-versioned routes fail to resolve. This appears to only affect convention-based routes, which means it also affects OData services.
Repro
To reproduce the behavior, register any ITraceWriter implementation.
The behavior appears to be caused by the decorators injected into Web API when a ITraceWriter
is registered. The equality comparisons required to match controllers and actions fail when the corresponding types are decorated with tracers.
Proposed Resolution
The HttpControllerDescriptor and HttpActionDescriptor types must be undecorated using the Decorator.GetInner method before performing any equality comparisons.
The text was updated successfully, but these errors were encountered:
Symptoms
When ITraceWriter is registered with ASP.NET Web API some API-versioned routes fail to resolve. This appears to only affect convention-based routes, which means it also affects OData services.
Repro
To reproduce the behavior, register any ITraceWriter implementation.
Analysis
The behavior appears to be caused by the decorators injected into Web API when a ITraceWriter
is registered. The equality comparisons required to match controllers and actions fail when the corresponding types are decorated with tracers.
Proposed Resolution
The HttpControllerDescriptor and HttpActionDescriptor types must be undecorated using the Decorator.GetInner method before performing any equality comparisons.
The text was updated successfully, but these errors were encountered: