An object-based plugin that receives the target instance and an Enhance utility.
This is the object-oriented counterpart to PluginFn. Implement the
invoke method to define the plugin's behavior. Object-based plugins are
useful when the plugin needs to carry its own state, configuration, or
dependencies.
Type Parameters
TInstance
The type of the target instance being configured
Param: instance
The target instance to configure
Param: enhance
The Enhance utility for wrapping methods with middleware
An object-based plugin that receives the target instance and an Enhance utility.
This is the object-oriented counterpart to PluginFn. Implement the
invokemethod to define the plugin's behavior. Object-based plugins are useful when the plugin needs to carry its own state, configuration, or dependencies.