Implementing New Methods
How to Extend?
1. Create a New Service Interface to Implement New Method
public interface IExtendedRENInMemoryCacheService : IRENCacheService
{
void AdditionalMethod();
}2. Create a New Service to Implement New Method
public class ExtendedRENInMemoryCacheService(IMemoryCache memoryCache)
: RENInMemoryCacheService(memoryCache),
IExtendedRENInMemoryCacheService
{
public void AdditionalMethod()
{
Console.WriteLine("ExtendedRENInMemoryCacheService AdditionalMethod called.");
// Implement your additional logic here
}
}3. Register Your Custom Implementation
4. Use Custom Service In Action
Last updated