Show / Hide Table of Contents

Class CacheCommandingDependencies

Inheritance
System.Object
CacheCommandingDependencies
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AzureFromTheTrenches.Commanding.Cache
Assembly: AzureFromTheTrenches.Commanding.Cache.dll
Syntax
public static class CacheCommandingDependencies

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
[Obsolete("Please use AddCommandCache instead")]
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
[Obsolete("Please use AddCommandCache instead")]
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
[Obsolete("Please use AddCommandCache instead")]
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
[Obsolete("Please use AddCommandCache instead")]
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
Back to top Generated by DocFX