3
votes
Generate Enter/Leave calls using attributes on class or method level
On a pre-build operation the Enter/Leave calls may be generated automatically.
[SiGenerateEnterLeave] // For all methods within this class Enter/Leave will be generated
public class SomeClass
{
}
[SiGenerateEnterLeave] // For this method Enter/Leave will be generated
public void SomeMethod()
{
}
SiGenerateEnterLeave may have parameters for the log level to be used or the name of the session to be used.
