Click or drag to resize
NLogISuppressSwallow Method
Overload List
  NameDescription
Public methodSwallow(Action)
Runs action. If the action throws, the exception is logged at Error level. Exception is not propagated outside of this method.
Public methodSwallowT(FuncT)
Runs the provided function and returns its result. If exception is thrown, it is logged at Error level. Exception is not propagated outside of this method. Fallback value is returned instead.
Public methodSwallowT(FuncT, T)
Runs the provided function and returns its result. If exception is thrown, it is logged at Error level. Exception is not propagated outside of this method. Fallback value is returned instead.
Top
See Also