Méthode | Description | |
---|---|---|
EnsureRouteData ( Controller controller, string key, object value ) : void |
Utility for ensuring that the correct key/value is in the controller context's route data for the ActionFilter to perform its filtering properly. Useful for injecting the key/value when the route data doesn't already exist in the request
|
|
SuccessfulOnRedirectAttribute ( ) : System |
Initializes a new instance of the SuccessfulOnRedirectAttribute class.
|
|
SuccessfulOnRedirectAttribute ( string routeDataKey ) : System |
Initializes a new instance of the SuccessfulOnRedirectAttribute class.
|
Méthode | Description | |
---|---|---|
AddQueryString ( System.Web.Mvc.RedirectToRouteResult result, System.Web.Mvc.ActionExecutedContext filterContext ) : void |
Checks if we are using a cookie to store data or just the query string, if using the cookie then passes logic to the base class, otherwise puts the query string value in
|
|
CreateCookie ( System.Web.Mvc.ResultExecutedContext filterContext ) : void |
Only create the cookie if its specified
|
|
GetTempDataKey ( ControllerContext filterContext ) : string |
Returns the request id as the temp data key
|
|
GetTempDataValue ( ControllerContext filterContext ) : object |
Returns the value to be stored in the cookie or query string
|
Méthode | Description | |
---|---|---|
GetController ( IController controller ) : IRequiresBackOfficeRequestContext |
Gets the BackOfficeController type from the filter context's controller instance
|
|
GetValueFromRoute ( ControllerContext controllerContext ) : object |
Returns the value to be stored in the cookie or query string
|
protected AddQueryString ( System.Web.Mvc.RedirectToRouteResult result, System.Web.Mvc.ActionExecutedContext filterContext ) : void | ||
result | System.Web.Mvc.RedirectToRouteResult | |
filterContext | System.Web.Mvc.ActionExecutedContext | |
Résultat | void |
protected CreateCookie ( System.Web.Mvc.ResultExecutedContext filterContext ) : void | ||
filterContext | System.Web.Mvc.ResultExecutedContext | |
Résultat | void |
public static EnsureRouteData ( Controller controller, string key, object value ) : void | ||
controller | Controller | |
key | string | |
value | object | |
Résultat | void |
protected GetTempDataKey ( ControllerContext filterContext ) : string | ||
filterContext | ControllerContext | |
Résultat | string |
protected GetTempDataValue ( ControllerContext filterContext ) : object | ||
filterContext | ControllerContext | |
Résultat | object |
public SuccessfulOnRedirectAttribute ( ) : System | ||
Résultat | System |
public SuccessfulOnRedirectAttribute ( string routeDataKey ) : System | ||
routeDataKey | string | The route data key. |
Résultat | System |