MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​FormattersCache­Key­BuilderBuild­Method­Key
Open sandboxFocus

CacheKeyBuilder.BuildMethodKey Method

BuildMethodKey(CachedMethodMetadata, Object, IList<Object>)

Builds a cache key for a given method call.

Declaration
public virtual string BuildMethodKey(CachedMethodMetadata metadata, object instance, IList<object> arguments)
Parameters
Type Name Description
CachedMethodMetadata metadata

The CachedMethodMetadata representing the method.

System.Object instance

The this instance of the method call, or null if the method is static.

System.Collections.Generic.IList<System.Object> arguments

The arguments passed to the method call.

Returns
Type Description
System.String

A string uniquely representing the method call.

Implements
ICacheKeyBuilder.BuildMethodKey(CachedMethodMetadata, Object, IList<Object>)