We believe in listening to the voice of the customer. But to do that, we need you to speak. That’s what this Feature Request section of our site is for.

 

Here’s how to get your voice heard:

  1. VOTE for existing ideas (this will also subscribe you to the idea’s status updates)

  2. SUBMIT new ideas (Please include only one suggestion per post. Duplicates are merged together.)

  3. COMMENT on other ideas, which we check regularly

We also publish Roadmaps here, based off these Feature Requests, so you can see what we’re working on.

 

Note, this site is for new Feature Requests. Bug Reports should be emailed to Support as normal.

3 votes

Provide .NET IDisposable support for sections (Method, Task, Thread, ...)

Provide a section object for various section methods (e.g. Method, Task, Thread, …) replacing the Enter/Leave method combination and the try/finally construct for safely leaving an entered section. Then logging can be done easily and safely by a single statement e.g.
using var _ = Si.Section.MethodSection(type);
I have also added (see extra feature requests)
* the type it is called for to have the full reference for the method (e.g. MyClass.MyMethod)
* Leave section also displays the execution time (often interesting and makes no work)
I can provide you with an implementation if you want.

Category: SmartInspect > Languages > .NET Werner G shared this idea

Leave a Reply

Scroll to Top