AsyncManager.Sync Method

Executes a callback in the current synchronization context.

Namespace:  System.Web.Mvc.Async
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

abstract Sync : 
        action:Action -> unit  
override Sync : 
        action:Action -> unit

Parameters

action
Type: System.Action

The asynchronous action.

The current synchronization context provides access to the HttpContext instance.

A Visual Studio project with source code is available to accompany this topic: Download.

Show: