C# Class Microsoft.AspNet.WebHooks.MemoryWebHookStore

Provides an implementation of IWebHookStore storing registered WebHooks in memory.
Actual deployments should replace this with a persistent store, for example provided by Microsoft.AspNet.WebHooks.Custom.AzureStorage.
Inheritance: Microsoft.AspNet.WebHooks.WebHookStore
显示文件 Open project: aspnet/WebHooks

Public Methods

Method Description
DeleteAllWebHooksAsync ( string user ) : System.Threading.Tasks.Task
DeleteWebHookAsync ( string user, string id ) : Task
GetAllWebHooksAsync ( string user ) : Task>
InsertWebHookAsync ( string user, WebHook webHook ) : Task
LookupWebHookAsync ( string user, string id ) : Task
QueryWebHooksAcrossAllUsersAsync ( IEnumerable actions, Func predicate ) : Task>
QueryWebHooksAsync ( string user, IEnumerable actions, Func predicate ) : Task>
UpdateWebHookAsync ( string user, WebHook webHook ) : Task

Private Methods

Method Description
DefaultPredicate ( WebHook webHook, string user ) : bool

Method Details

DeleteAllWebHooksAsync() public method

public DeleteAllWebHooksAsync ( string user ) : System.Threading.Tasks.Task
user string
return System.Threading.Tasks.Task

DeleteWebHookAsync() public method

public DeleteWebHookAsync ( string user, string id ) : Task
user string
id string
return Task

GetAllWebHooksAsync() public method

public GetAllWebHooksAsync ( string user ) : Task>
user string
return Task>

InsertWebHookAsync() public method

public InsertWebHookAsync ( string user, WebHook webHook ) : Task
user string
webHook WebHook
return Task

LookupWebHookAsync() public method

public LookupWebHookAsync ( string user, string id ) : Task
user string
id string
return Task

QueryWebHooksAcrossAllUsersAsync() public method

public QueryWebHooksAcrossAllUsersAsync ( IEnumerable actions, Func predicate ) : Task>
actions IEnumerable
predicate Func
return Task>

QueryWebHooksAsync() public method

public QueryWebHooksAsync ( string user, IEnumerable actions, Func predicate ) : Task>
user string
actions IEnumerable
predicate Func
return Task>

UpdateWebHookAsync() public method

public UpdateWebHookAsync ( string user, WebHook webHook ) : Task
user string
webHook WebHook
return Task