You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to profile a class library internally.
My class is similar to:
publicclassStateManagement():IStateManagement{/// <summary>Sets the state asynchronous.</summary>/// <param name="statusKey">The status key.</param>/// <param name="statusValue">The status value.</param>/// <returns></returns>publicasyncTask<bool>SetStateAsync(stringstatusKey,objectstatusValue){boolresult=false;try{// custom coderesult=true;}catch(ExceptionstateEx){
Console.WriteLine(stateEx);}returnresult;}//...}
Workaround
I think that the solution is not the better.
publicclassStateManagement():IStateManagement{/// <summary>Sets the state asynchronous.</summary>/// <param name="statusKey">The status key.</param>/// <param name="statusValue">The status value.</param>/// <returns></returns>publicasyncTask<bool>SetStateAsync(MiniProfilerprofiler,stringstatusKey,objectstatusValue){boolresult=false;try{using(profiler.Step("Bulk op")){// custom code}result=true;}catch(ExceptionstateEx){
Console.WriteLine(stateEx);}returnresult;}//...}
The text was updated successfully, but these errors were encountered:
Current version MiniProfiler
Current version .NET
Expected behaviour
I would like to profile a class library internally.
My class is similar to:
Workaround
I think that the solution is not the better.
The text was updated successfully, but these errors were encountered: