Open sandboxFocus

Method Register

Register(MethodInfo, CachedMethodConfiguration?, bool)

Registers a cached method and returns its metadata.

Declaration
public static CachedMethodMetadata Register(MethodInfo method, CachedMethodConfiguration? buildTimeConfiguration = null, bool throwIfAlreadyRegistered = true)
Parameters
Type Name Description
MethodInfo method

The MethodInfo of the cached method.

CachedMethodConfiguration buildTimeConfiguration

Optional compile-time configuration.

bool throwIfAlreadyRegistered

If true, throws an exception if the method is already registered.

Returns
Type Description
CachedMethodMetadata

The registered CachedMethodMetadata.