Open sandboxFocus

Method CreateAsync

CreateAsync(CachingBackend, AzureServiceBusCacheInvalidatorOptions)

Asynchronously creates a new AzureServiceBusCacheInvalidator.

Declaration
public static Task<AzureServiceBusCacheInvalidator> CreateAsync(CachingBackend backend, AzureServiceBusCacheInvalidatorOptions options)
Parameters
Type Name Description
CachingBackend backend

The local cache, typically an in-memory cache, that the new AzureServiceBusCacheInvalidator invalidates.

AzureServiceBusCacheInvalidatorOptions options

The options of the invalidator.

Returns
Type Description
Task<AzureServiceBusCacheInvalidator>

A new AzureServiceBusCacheInvalidator.