C# - Is it possible to create new local Guid variable, automatically whenver a method is being called?

后端 未结 0 1028
生来不讨喜
生来不讨喜 2021-02-02 15:45

I am looking to implement Guid trace mechanism for every method that is being called but I don\'t want to write this on every method:

Guid TraceId = Guid.NewGuid()

相关标签:
回答
  • 消灭零回复
提交回复
热议问题