TF-1842: Create SendingEmailBinding and implement in SendingEmailObserver

(cherry picked from commit 7ec20283d7d119857ab7e689139e226c15a2137c)
This commit is contained in:
HuyNguyen
2023-05-31 00:56:35 +07:00
committed by Dat Vu
parent d626fc6b4c
commit 36ab1316e2
7 changed files with 309 additions and 12 deletions
@@ -12,8 +12,8 @@ class AuthenticationInfoCacheManager {
authenticationInfoCache);
}
Future<AuthenticationInfoCache?> getAuthenticationInfoStored() {
return _authenticationInfoCacheClient.getItem(AuthenticationInfoCache.keyCacheValue);
Future<AuthenticationInfoCache?> getAuthenticationInfoStored({bool needToReopen = false}) {
return _authenticationInfoCacheClient.getItem(AuthenticationInfoCache.keyCacheValue, needToReopen: needToReopen);
}
Future<void> removeAuthenticationInfo() {
@@ -36,8 +36,8 @@ class CredentialRepositoryImpl extends CredentialRepository {
}
@override
Future<AuthenticationInfoCache?> getAuthenticationInfoStored() {
return _authenticationInfoCacheManager.getAuthenticationInfoStored();
Future<AuthenticationInfoCache?> getAuthenticationInfoStored({bool needToReopen = false}) {
return _authenticationInfoCacheManager.getAuthenticationInfoStored(needToReopen: needToReopen);
}
@override