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
var apiDescriptor = new ApiDescriptor();
typeof(ApiDescription).GetProperty(nameof(ApiDescription.ResponseDescription)).SetValue(apiDescriptor, new ResponseDescription());
When creating an
ApiDescriptionfrom it's own ctor theResponseDescriptionis not initiated and the set-property is internal.AspNetWebStack/src/System.Web.Http/Description/ApiDescription.cs
Line 85 in 62d0b2d
Workaround