C# Class Microsoft.AspNet.WebHooks.AzureWebHookStore

Inheritance: Microsoft.AspNet.WebHooks.WebHookStore
Mostra file Open project: aspnet/WebHooks Class Usage Examples

Public Methods

Method Description
AzureWebHookStore ( IStorageManager manager, SettingsDictionary settings, IDataProtector protector, ILogger logger ) : System

Initializes a new instance of the AzureWebHookStore class with the given manager, settings, protector, and logger. Using this constructor, the data will be encrypted using the provided protector.

AzureWebHookStore ( IStorageManager manager, SettingsDictionary settings, ILogger logger ) : System

Initializes a new instance of the AzureWebHookStore class with the given manager, settings, and logger. Using this constructor, the data will not be encrypted while persisted to Azure Storage.

CreateStore ( ILogger logger ) : IWebHookStore

Provides a static method for creating a standalone AzureWebHookStore instance which will encrypt the data to be stored using IDataProtector.

CreateStore ( ILogger logger, bool encryptData ) : IWebHookStore

Provides a static method for creating a standalone AzureWebHookStore instance.

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
ConvertFromWebHook ( string partitionKey, string rowKey, WebHook webHook ) : Microsoft.WindowsAzure.Storage.Table.DynamicTableEntity
ConvertToWebHook ( Microsoft.WindowsAzure.Storage.Table.DynamicTableEntity entity ) : WebHook
DefaultPredicate ( WebHook webHook, string user ) : bool
GetStoreResult ( Microsoft.WindowsAzure.Storage.Table.TableResult result ) : StoreResult

Method Details

AzureWebHookStore() public method

Initializes a new instance of the AzureWebHookStore class with the given manager, settings, protector, and logger. Using this constructor, the data will be encrypted using the provided protector.
public AzureWebHookStore ( IStorageManager manager, SettingsDictionary settings, IDataProtector protector, ILogger logger ) : System
manager IStorageManager
settings SettingsDictionary
protector IDataProtector
logger ILogger
return System

AzureWebHookStore() public method

Initializes a new instance of the AzureWebHookStore class with the given manager, settings, and logger. Using this constructor, the data will not be encrypted while persisted to Azure Storage.
public AzureWebHookStore ( IStorageManager manager, SettingsDictionary settings, ILogger logger ) : System
manager IStorageManager
settings SettingsDictionary
logger ILogger
return System

CreateStore() public static method

Provides a static method for creating a standalone AzureWebHookStore instance which will encrypt the data to be stored using IDataProtector.
public static CreateStore ( ILogger logger ) : IWebHookStore
logger ILogger The instance to use.
return IWebHookStore

CreateStore() public static method

Provides a static method for creating a standalone AzureWebHookStore instance.
public static CreateStore ( ILogger logger, bool encryptData ) : IWebHookStore
logger ILogger The instance to use.
encryptData bool Indicates whether the data should be encrypted using while persisted.
return IWebHookStore

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