C# Class Microsoft.AspNet.WebHooks.AzureWebHookStore

Inheritance: Microsoft.AspNet.WebHooks.WebHookStore
Afficher le fichier Open project: aspnet/WebHooks Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat System

AzureWebHookStore() public méthode

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
Résultat System

CreateStore() public static méthode

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.
Résultat IWebHookStore

CreateStore() public static méthode

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.
Résultat IWebHookStore

DeleteAllWebHooksAsync() public méthode

public DeleteAllWebHooksAsync ( string user ) : System.Threading.Tasks.Task
user string
Résultat System.Threading.Tasks.Task

DeleteWebHookAsync() public méthode

public DeleteWebHookAsync ( string user, string id ) : Task
user string
id string
Résultat Task

GetAllWebHooksAsync() public méthode

public GetAllWebHooksAsync ( string user ) : Task>
user string
Résultat Task>

InsertWebHookAsync() public méthode

public InsertWebHookAsync ( string user, WebHook webHook ) : Task
user string
webHook WebHook
Résultat Task

LookupWebHookAsync() public méthode

public LookupWebHookAsync ( string user, string id ) : Task
user string
id string
Résultat Task

QueryWebHooksAcrossAllUsersAsync() public méthode

public QueryWebHooksAcrossAllUsersAsync ( IEnumerable actions, Func predicate ) : Task>
actions IEnumerable
predicate Func
Résultat Task>

QueryWebHooksAsync() public méthode

public QueryWebHooksAsync ( string user, IEnumerable actions, Func predicate ) : Task>
user string
actions IEnumerable
predicate Func
Résultat Task>

UpdateWebHookAsync() public méthode

public UpdateWebHookAsync ( string user, WebHook webHook ) : Task
user string
webHook WebHook
Résultat Task