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 |
Returns
| Type | Description |
|---|---|
| CachedMethodMetadata | The registered CachedMethodMetadata. |