WebbiWebProxySwitchModeAsync - метод
Switch on/off system maintenance mode by direct call to /switch route.
Пространство имён: Tessa.WebbiСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public Task SwitchModeAsync(
bool maintenance,
IDictionary<string, string>? messages = null,
IDictionary<string, string>? localization = null,
CancellationToken cancellationToken = default
)
Public Function SwitchModeAsync (
maintenance As Boolean,
Optional messages As IDictionary(Of String, String) = Nothing,
Optional localization As IDictionary(Of String, String) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
Task^ SwitchModeAsync(
bool maintenance,
IDictionary<String^, String^>^ messages = nullptr,
IDictionary<String^, String^>^ localization = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
member SwitchModeAsync :
maintenance : bool *
?messages : IDictionary<string, string> *
?localization : IDictionary<string, string> *
?cancellationToken : CancellationToken
(* Defaults:
let _messages = defaultArg messages null
let _localization = defaultArg localization null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
- maintenance Boolean
- Flag to switch on or off maintenance mode.
- messages IDictionaryString, String (Optional)
- Mode messages with localizable placeholders.
- localization IDictionaryString, String (Optional)
- Localization library.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
Task