mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
better DI
This commit is contained in:
@@ -4,7 +4,12 @@ using Microsoft.Extensions.Caching.Memory;
|
||||
|
||||
namespace BirdsiteLive.Twitter
|
||||
{
|
||||
public class CachedTwitterUserService : ITwitterUserService
|
||||
public interface ICachedTwitterUserService : ITwitterUserService
|
||||
{
|
||||
void PurgeUser(string username);
|
||||
}
|
||||
|
||||
public class CachedTwitterUserService : ICachedTwitterUserService
|
||||
{
|
||||
private readonly ITwitterUserService _twitterService;
|
||||
|
||||
|
Reference in New Issue
Block a user