Utils.SafeExecute 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SafeExecute(Action, Logger, String) | |
SafeExecute(Action, Logger, Func<String>) | |
SafeExecute(Action, ILogger, String) | |
SafeExecute(Action, ILogger, Func<String>) | |
SafeExecute(Action) |
SafeExecute(Action, Logger, String)
public static void SafeExecute (Action action, Orleans.Runtime.Logger logger = default, string caller = default);
static member SafeExecute : Action * Orleans.Runtime.Logger * string -> unit
Public Sub SafeExecute (action As Action, Optional logger As Logger = Nothing, Optional caller As String = Nothing)
參數
- action
- Action
- logger
- Logger
- caller
- String
適用於
SafeExecute(Action, Logger, Func<String>)
public static void SafeExecute (Action action, Orleans.Runtime.Logger logger, Func<string> callerGetter);
static member SafeExecute : Action * Orleans.Runtime.Logger * Func<string> -> unit
Public Sub SafeExecute (action As Action, logger As Logger, callerGetter As Func(Of String))
參數
- action
- Action
- logger
- Logger
適用於
SafeExecute(Action, ILogger, String)
- 來源:
- Utils.cs
public static void SafeExecute (Action action, Microsoft.Extensions.Logging.ILogger logger = default, string caller = default);
public static void SafeExecute (Action action, Microsoft.Extensions.Logging.ILogger? logger = default, string? caller = default);
static member SafeExecute : Action * Microsoft.Extensions.Logging.ILogger * string -> unit
Public Sub SafeExecute (action As Action, Optional logger As ILogger = Nothing, Optional caller As String = Nothing)
參數
- action
- Action
- logger
- ILogger
- caller
- String
適用於
SafeExecute(Action, ILogger, Func<String>)
- 來源:
- Utils.cs
public static void SafeExecute (Action action, Microsoft.Extensions.Logging.ILogger logger, Func<string> callerGetter);
static member SafeExecute : Action * Microsoft.Extensions.Logging.ILogger * Func<string> -> unit
Public Sub SafeExecute (action As Action, logger As ILogger, callerGetter As Func(Of String))
參數
- action
- Action
- logger
- ILogger
適用於
SafeExecute(Action)
public static void SafeExecute (Action action);
static member SafeExecute : Action -> unit
Public Sub SafeExecute (action As Action)
參數
- action
- Action