Show / Hide Table of Contents

Class CacheCommandingDependencies

Inheritance
System.Object
CacheCommandingDependencies
Namespace: AzureFromTheTrenches.Commanding.Cache
Assembly: AzureFromTheTrenches.Commanding.Cache.dll
Syntax
public static class CacheCommandingDependencies : object

Methods

| Improve this Doc View Source

AddCommandCache(ICommandingDependencyResolverAdapter, CacheOptions[])

Sets up the cache with the default cache key provider that uses the command type, property names and property values to generate a hashable string

Declaration
public static ICommandingDependencyResolverAdapter AddCommandCache(this ICommandingDependencyResolverAdapter resolver, params CacheOptions[] options)
Parameters
Type Name Description
ICommandingDependencyResolverAdapter resolver

The dependency resolver

CacheOptions[] options

Cache options

Returns
Type Description
ICommandingDependencyResolverAdapter

The dependency resolver

| Improve this Doc View Source

AddCommandCache(ICommandingDependencyResolverAdapter, ICacheKeyProvider, CacheOptions[])

Sets up the cache with the specified cache key provider

Declaration
public static ICommandingDependencyResolverAdapter AddCommandCache(this ICommandingDependencyResolverAdapter resolver, ICacheKeyProvider cacheKeyProvider, params CacheOptions[] options)
Parameters
Type Name Description
ICommandingDependencyResolverAdapter resolver

The dependency resolver

ICacheKeyProvider cacheKeyProvider

Instance of a cache key provider

CacheOptions[] options

Cache options

Returns
Type Description
ICommandingDependencyResolverAdapter

The dependency resolver

| Improve this Doc View Source

AddCommandCache(ICommandingDependencyResolverAdapter, ICacheKeyProvider, Boolean, CacheOptions[])

Sets up the cache with the specified cache key provider

Declaration
public static ICommandingDependencyResolverAdapter AddCommandCache(this ICommandingDependencyResolverAdapter resolver, ICacheKeyProvider cacheKeyProvider, bool replaceDefaultCommandDispatcher, params CacheOptions[] options)
Parameters
Type Name Description
ICommandingDependencyResolverAdapter resolver

The dependency resolver

ICacheKeyProvider cacheKeyProvider

Instance of a cache key provider

System.Boolean replaceDefaultCommandDispatcher

If true then the default ICommandDispatcher will be replaced with the caching variant

CacheOptions[] options

Cache options

Returns
Type Description
ICommandingDependencyResolverAdapter

The dependency resolver

| Improve this Doc View Source

AddCommandCache(ICommandingDependencyResolverAdapter, Boolean, CacheOptions[])

Sets up the cache with the default cache key provider that uses the command type, property names and property values to generate a hashable string

Declaration
public static ICommandingDependencyResolverAdapter AddCommandCache(this ICommandingDependencyResolverAdapter resolver, bool replaceDefaultCommandDispatcher, params CacheOptions[] options)
Parameters
Type Name Description
ICommandingDependencyResolverAdapter resolver

The dependency resolver

System.Boolean replaceDefaultCommandDispatcher

If true then the default ICommandDispatcher will be replaced with the caching variant

CacheOptions[] options

Cache options

Returns
Type Description
ICommandingDependencyResolverAdapter

The dependency resolver

| Improve this Doc View Source

UseCommandCache(ICommandingDependencyResolver, CacheOptions[])

Sets up the cache with the default cache key provider that uses the command type, property names and property values to generate a hashable string

Declaration
public static ICommandingDependencyResolver UseCommandCache(this ICommandingDependencyResolver resolver, params CacheOptions[] options)
Parameters
Type Name Description
ICommandingDependencyResolver resolver

The dependency resolver

CacheOptions[] options

Cache options

Returns
Type Description
ICommandingDependencyResolver

The dependency resolver

| Improve this Doc View Source

UseCommandCache(ICommandingDependencyResolver, ICacheKeyProvider, CacheOptions[])

Sets up the cache with the specified cache key provider

Declaration
public static ICommandingDependencyResolver UseCommandCache(this ICommandingDependencyResolver resolver, ICacheKeyProvider cacheKeyProvider, params CacheOptions[] options)
Parameters
Type Name Description
ICommandingDependencyResolver resolver

The dependency resolver

ICacheKeyProvider cacheKeyProvider

Instance of a cache key provider

CacheOptions[] options

Cache options

Returns
Type Description
ICommandingDependencyResolver

The dependency resolver

| Improve this Doc View Source

UseCommandCache(ICommandingDependencyResolver, ICacheKeyProvider, Boolean, CacheOptions[])

Sets up the cache with the specified cache key provider

Declaration
public static ICommandingDependencyResolver UseCommandCache(this ICommandingDependencyResolver resolver, ICacheKeyProvider cacheKeyProvider, bool replaceDefaultCommandDispatcher, params CacheOptions[] options)
Parameters
Type Name Description
ICommandingDependencyResolver resolver

The dependency resolver

ICacheKeyProvider cacheKeyProvider

Instance of a cache key provider

System.Boolean replaceDefaultCommandDispatcher

If true then the default ICommandDispatcher will be replaced with the caching variant

CacheOptions[] options

Cache options

Returns
Type Description
ICommandingDependencyResolver

The dependency resolver

| Improve this Doc View Source

UseCommandCache(ICommandingDependencyResolver, Boolean, CacheOptions[])

Sets up the cache with the default cache key provider that uses the command type, property names and property values to generate a hashable string

Declaration
public static ICommandingDependencyResolver UseCommandCache(this ICommandingDependencyResolver resolver, bool replaceDefaultCommandDispatcher, params CacheOptions[] options)
Parameters
Type Name Description
ICommandingDependencyResolver resolver

The dependency resolver

System.Boolean replaceDefaultCommandDispatcher

If true then the default ICommandDispatcher will be replaced with the caching variant

CacheOptions[] options

Cache options

Returns
Type Description
ICommandingDependencyResolver

The dependency resolver

  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall