LoggerBaseStartNewActivity Method (String) |
Convenient method that returns new activity scope with specified name.
Namespace:
Atalasoft.Shared.Diagnostics
Assembly:
Atalasoft.Shared (in Atalasoft.Shared.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public virtual ActivityScope StartNewActivity(
string activityName
)
Public Overridable Function StartNewActivity (
activityName As String
) As ActivityScope
Parameters
- activityName
- Type: SystemString
New activity name.
Return Value
Type:
ActivityScopeActivity scope
Examples Logger log = ...
using(log.StartNewActivity("Some Interesting Activity"))
{
}
See Also