mirror of
https://github.com/bitwarden/server.git
synced 2024-12-01 13:43:23 +01:00
Noop services
This commit is contained in:
parent
52b8fef26f
commit
b08c960cc0
33
src/Core/Services/Implementations/NoopMailService.cs
Normal file
33
src/Core/Services/Implementations/NoopMailService.cs
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
using System.Threading.Tasks;
|
||||||
|
using Bit.Core.Domains;
|
||||||
|
|
||||||
|
namespace Bit.Core.Services
|
||||||
|
{
|
||||||
|
public class NoopMailService : IMailService
|
||||||
|
{
|
||||||
|
public Task SendChangeEmailAlreadyExistsEmailAsync(string fromEmail, string toEmail)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task SendChangeEmailEmailAsync(string newEmailAddress, string token)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task SendMasterPasswordHintEmailAsync(string email, string hint)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task SendNoMasterPasswordHintEmailAsync(string email)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task SendWelcomeEmailAsync(User user)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
29
src/Core/Services/Implementations/NoopPushService.cs
Normal file
29
src/Core/Services/Implementations/NoopPushService.cs
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
using System;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Bit.Core.Domains;
|
||||||
|
|
||||||
|
namespace Bit.Core.Services
|
||||||
|
{
|
||||||
|
public class NoopPushService : IPushService
|
||||||
|
{
|
||||||
|
public Task PushSyncCipherCreateAsync(Cipher cipher)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task PushSyncCipherDeleteAsync(Cipher cipher)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task PushSyncCiphersAsync(Guid userId)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task PushSyncCipherUpdateAsync(Cipher cipher)
|
||||||
|
{
|
||||||
|
return Task.FromResult(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user