PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Backends.​Azure Namespace / Azure­Cache­Invalidator Class / Azure­Cache­Invalidator Methods / Azure­Cache­Invalidator.​Create­Async Method

AzureCacheInvalidator.CreateAsync Method

Asynchronously creates a new AzureCacheInvalidator.

Namespace:  PostSharp.Patterns.Caching.Backends.Azure
Assembly:  PostSharp.Patterns.Caching.Backends.Azure (in PostSharp.Patterns.Caching.Backends.Azure.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static Task<AzureCacheInvalidator> CreateAsync(
	CachingBackend backend,
	AzureCacheInvalidatorOptions options
)

Parameters

backend
Type: PostSharp.Patterns.Caching.Implementation.CachingBackend
The local (in-memory, typically) cache being invalidated by the new AzureCacheInvalidator.
options
Type: PostSharp.Patterns.Caching.Backends.Azure.AzureCacheInvalidatorOptions
Options.

Return Value

Type: Task<AzureCacheInvalidator>
A new AzureCacheInvalidator.
See Also