Open sandboxFocus

Method WithAzureSynchronization

WithAzureSynchronization(MemoryCachingBackendBuilder, string)

Adds a component that synchronizes several local, in-memory caches, using Azure Service Bus. This overloads expects a connection string to the Azure Service Bus topic.

Declaration
public static AzureCacheSynchronizerBuilder WithAzureSynchronization(this MemoryCachingBackendBuilder builder, string connectionString)
Parameters
Type Name Description
MemoryCachingBackendBuilder builder
string connectionString
Returns
Type Description
AzureCacheSynchronizerBuilder

WithAzureSynchronization(MemoryCachingBackendBuilder, AzureCacheSynchronizerConfiguration)

Enhances an in-memory cache with a component that synchronizes several local, in-memory caches, using Azure Service Bus. This overloads expects a an AzureCacheSynchronizerConfiguration.

Declaration
public static AzureCacheSynchronizerBuilder WithAzureSynchronization(this MemoryCachingBackendBuilder builder, AzureCacheSynchronizerConfiguration configuration)
Parameters
Type Name Description
MemoryCachingBackendBuilder builder
AzureCacheSynchronizerConfiguration configuration
Returns
Type Description
AzureCacheSynchronizerBuilder