C# Класс Microsoft.AspNet.WebHooks.AzureWebHookStore

Наследование: Microsoft.AspNet.WebHooks.WebHookStore
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AzureWebHookStore() публичный Метод

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
Результат System

AzureWebHookStore() публичный Метод

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
Результат System

CreateStore() публичный статический Метод

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.
Результат IWebHookStore

CreateStore() публичный статический Метод

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.
Результат IWebHookStore

DeleteAllWebHooksAsync() публичный Метод

public DeleteAllWebHooksAsync ( string user ) : System.Threading.Tasks.Task
user string
Результат System.Threading.Tasks.Task

DeleteWebHookAsync() публичный Метод

public DeleteWebHookAsync ( string user, string id ) : Task
user string
id string
Результат Task

GetAllWebHooksAsync() публичный Метод

public GetAllWebHooksAsync ( string user ) : Task>
user string
Результат Task>

InsertWebHookAsync() публичный Метод

public InsertWebHookAsync ( string user, WebHook webHook ) : Task
user string
webHook WebHook
Результат Task

LookupWebHookAsync() публичный Метод

public LookupWebHookAsync ( string user, string id ) : Task
user string
id string
Результат Task

QueryWebHooksAcrossAllUsersAsync() публичный Метод

public QueryWebHooksAcrossAllUsersAsync ( IEnumerable actions, Func predicate ) : Task>
actions IEnumerable
predicate Func
Результат Task>

QueryWebHooksAsync() публичный Метод

public QueryWebHooksAsync ( string user, IEnumerable actions, Func predicate ) : Task>
user string
actions IEnumerable
predicate Func
Результат Task>

UpdateWebHookAsync() публичный Метод

public UpdateWebHookAsync ( string user, WebHook webHook ) : Task
user string
webHook WebHook
Результат Task