forked from gongxuegit/tiku-backend.net
feat: modularize external providers
This commit is contained in:
14
Tiku.Infrastructure/Auth/NoopSmsProvider.cs
Normal file
14
Tiku.Infrastructure/Auth/NoopSmsProvider.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Tiku.Application.Auth;
|
||||
|
||||
namespace Tiku.Infrastructure.Auth;
|
||||
|
||||
internal sealed class NoopSmsProvider : ISmsProvider
|
||||
{
|
||||
public Task<SmsProviderSendResult> SendAsync(
|
||||
SmsProviderSendRequest request,
|
||||
CancellationToken cancellationToken = default)
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
return Task.FromResult(new SmsProviderSendResult("noop", "accepted"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user