-
-
Notifications
You must be signed in to change notification settings - Fork 838
Web Api Integration Release Notes
Alex Meyer-Gleaves edited this page Oct 24, 2016
·
7 revisions
- Fixed #20 - A custom controller type name suffix can now be provided to the
RegisterApiControllers
method.
- Fixed #6 and #14: The Autofac filter interfaces now use
Task
/async based method signatures rather than synchronous signatures. This avoids usingTask.Run
or other methods to convert async to synchronous whereHttpContext.Current
could sometimes get lost. - Fixed #8: Marked
RegisterModelBinders
as obsolete since it doesn't actually register the model binders such that they hook into dependency injection. Use theAsModelBinderForTypes()
extension on binder registrations instead. - Fixed #10: Controller types that derive from base controllers can add action filters to non-virtual methods.
- Switched to .NET 4.5 security model (no more
AllowPartiallyTrustedCallersAttribute
).
- Pushed the notion of per-request lifetime scope into Autofac core. Individual web/OWIN request mechanisms have been marked obsolete in favor of the new central method. (#466)
-
Updated
InstancePerApiRequest
to accept additional lifetime scope tags. -
Added a
RegisterHttpRequestMessage
method to the container builder that uses aDelegatingHandler
to make the currentHttpRequestMessage
resolvable in the dependency scope.
- Issue 426: Not all Web API filters are executed when multiple filters are applied to the same target.
- Resolved Issue 426: Not all Web API filters are executed when multiple filters are applied to the same target.
- Resolved Issue 418: Multiple
IAutofacActionFilter
causes each filter to execute multiple times. Filter wrappers are now only added once per ControllerType, FilterScope and MethodInfo combination.