RedisInitializerChecker(FuncCancellationToken, ValueTaskString, IUnityDisposableContainer) - конструктор
Creates Redis initialization checker instance.
Пространство имён: Tessa.Platform.RedisСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public RedisInitializerChecker(
Func<CancellationToken, ValueTask<string>> getServerCodeAsync,
[OptionalDependencyAttribute] IUnityDisposableContainer? container = null
)
Public Sub New (
getServerCodeAsync As Func(Of CancellationToken, ValueTask(Of String)),
<OptionalDependencyAttribute> Optional container As IUnityDisposableContainer = Nothing
)
public:
RedisInitializerChecker(
Func<CancellationToken, ValueTask<String^>>^ getServerCodeAsync,
[OptionalDependencyAttribute] IUnityDisposableContainer^ container = nullptr
)
new :
getServerCodeAsync : Func<CancellationToken, ValueTask<string>> *
[<OptionalDependencyAttribute>] ?container : IUnityDisposableContainer
(* Defaults:
let _container = defaultArg container null
*)
-> RedisInitializerChecker
Параметры
- getServerCodeAsync FuncCancellationToken, ValueTaskString
- Server code get async function.
- container IUnityDisposableContainer (Optional)
Контейнер, содержащий объекты IDisposable,
которые будут освобождены при закрытии контейнеров IUnityContainer.