C# Class System.Web.Mvc.ControllerExtensions

Show file Open project: aspnet/WebHooks

Public Methods

Method Description
NotifyAllAsync ( this controller ) : Task

Submits a notification to all matching registered WebHooks across all users. To match, the WebHook must have a filter that matches one or more of the actions provided for the notification.

NotifyAllAsync ( this controller, IEnumerable notifications, Func predicate ) : Task

Submits a notification to all matching registered WebHooks across all users. To match, the WebHook must have a filter that matches one or more of the actions provided for the notification.

NotifyAllAsync ( this controller, string action, object data ) : Task

Submits a notification to all matching registered WebHooks across all users. To match, the WebHook must have a filter that matches one or more of the actions provided for the notification.

NotifyAllAsync ( this controller, string action, object data, Func predicate ) : Task

Submits a notification to all matching registered WebHooks across all users. To match, the WebHook must have a filter that matches one or more of the actions provided for the notification.

NotifyAsync ( this controller ) : Task

Submits a notification to all matching registered WebHooks. To match, the WebHook must be registered by the current Controller.User and have a filter that matches one or more of the actions provided for the notification.

NotifyAsync ( this controller, IEnumerable notifications, Func predicate ) : Task

Submits a notification to all matching registered WebHooks. To match, the WebHook must be registered by the current Controller.User and have a filter that matches one or more of the actions provided for the notification.

NotifyAsync ( this controller, string action, object data ) : Task

Submits a notification to all matching registered WebHooks. To match, the WebHook must be registered by the current Controller.User and have a filter that matches one or more of the actions provided for the notification.

NotifyAsync ( this controller, string action, object data, Func predicate ) : Task

Submits a notification to all matching registered WebHooks. To match, the WebHook must be registered by the current Controller.User and have a filter that matches one or more of the actions provided for the notification.

Method Details

NotifyAllAsync() public static method

Submits a notification to all matching registered WebHooks across all users. To match, the WebHook must have a filter that matches one or more of the actions provided for the notification.
public static NotifyAllAsync ( this controller ) : Task
controller this The instance.
return Task

NotifyAllAsync() public static method

Submits a notification to all matching registered WebHooks across all users. To match, the WebHook must have a filter that matches one or more of the actions provided for the notification.
public static NotifyAllAsync ( this controller, IEnumerable notifications, Func predicate ) : Task
controller this The instance.
notifications IEnumerable The set of notifications to include in the WebHook.
predicate Func A function to test each to see whether it fulfills the condition. The /// predicate is passed the and the user who registered it. If the predicate returns true then /// the is included; otherwise it is not.
return Task

NotifyAllAsync() public static method

Submits a notification to all matching registered WebHooks across all users. To match, the WebHook must have a filter that matches one or more of the actions provided for the notification.
public static NotifyAllAsync ( this controller, string action, object data ) : Task
controller this The instance.
action string The action describing the notification.
data object Optional additional data to include in the WebHook request.
return Task

NotifyAllAsync() public static method

Submits a notification to all matching registered WebHooks across all users. To match, the WebHook must have a filter that matches one or more of the actions provided for the notification.
public static NotifyAllAsync ( this controller, string action, object data, Func predicate ) : Task
controller this The instance.
action string The action describing the notification.
data object Optional additional data to include in the WebHook request.
predicate Func A function to test each to see whether it fulfills the condition. The /// predicate is passed the and the user who registered it. If the predicate returns true then /// the is included; otherwise it is not.
return Task

NotifyAsync() public static method

Submits a notification to all matching registered WebHooks. To match, the WebHook must be registered by the current Controller.User and have a filter that matches one or more of the actions provided for the notification.
public static NotifyAsync ( this controller ) : Task
controller this The MVC instance.
return Task

NotifyAsync() public static method

Submits a notification to all matching registered WebHooks. To match, the WebHook must be registered by the current Controller.User and have a filter that matches one or more of the actions provided for the notification.
public static NotifyAsync ( this controller, IEnumerable notifications, Func predicate ) : Task
controller this The MVC instance.
notifications IEnumerable The set of notifications to include in the WebHook.
predicate Func A function to test each to see whether it fulfills the condition. The /// predicate is passed the and the user who registered it. If the predicate returns true then /// the is included; otherwise it is not.
return Task

NotifyAsync() public static method

Submits a notification to all matching registered WebHooks. To match, the WebHook must be registered by the current Controller.User and have a filter that matches one or more of the actions provided for the notification.
public static NotifyAsync ( this controller, string action, object data ) : Task
controller this The MVC instance.
action string The action describing the notification.
data object Optional additional data to include in the WebHook request.
return Task

NotifyAsync() public static method

Submits a notification to all matching registered WebHooks. To match, the WebHook must be registered by the current Controller.User and have a filter that matches one or more of the actions provided for the notification.
public static NotifyAsync ( this controller, string action, object data, Func predicate ) : Task
controller this The MVC instance.
action string The action describing the notification.
data object Optional additional data to include in the WebHook request.
predicate Func A function to test each to see whether it fulfills the condition. The /// predicate is passed the and the user who registered it. If the predicate returns true then /// the is included; otherwise it is not.
return Task