The following route mapping methods have been removed:
MapComposableRouteMapComposableGetMapComposablePostMapComposableDeleteMapComposablePatchMapComposablePutUse attribute routing-based composition, MapCompositionHandlers, and MVC Endpoints as described in the getting started section.
The following types and members have been removed:
EventHandler<TEvent>IHandleRequestsIHandleRequestsErrorsIInterceptRoutesIPublishCompositionEventsISubscribeToCompositionEventsRegisterCompositionEventsSubscriberRegisterRequestsHandlerHandleRequestSee the ASP.Net Core endopints integration for further details on the available replacement options.
The CompositionGateway has been removed; use the host integration and MVC Endpoints.
The AddComposedRequestIdHeader, GetComposedRequestId, and GetComposedRequestIdHeaderOr have been removed in favor of accessing the request identifier through the composition context. To get the composition context in a composition handler:
var context = request.GetCompositionContext();
The composition context exposes the RequestID property:
var requestId = context.RequestId;
Two IViewModelPreviewHandler.Preview overloads have been removed. Use IViewModelPreviewHandler.Preview(HttpRequest request).
Write support is enabled by default and can be disabled using the DisableWriteSupport() configuration option. The EnableWriteSupport() method has been removed in v3.
The dynamic vm.RaiseEvent() method has been removed. To raise events, access the composition context and use the RaiseEvent method:
await context.RaiseEvent(new AnEvent());