I am currently using Asp.Net MVC 4 and I would like to include the time of some routines used by my controllers in the glimpse's timeline tab.
I know that I have to create an ITimeLineMessage Implementation and send the timing information with a message broker. But how to create the ITimeLineMessage ?
Here is a way but its not very nice and not supported:
Glimpse.Core.Framework.GlimpseConfiguration.GetConfiguredMessageBroker()
messageBroker.Publish(timelineMessage)
ITimelineMessage
IExecutionTimer
. You can get this via the following static method:
Glimpse.Core.Framework.GlimpseConfiguration.GetConfiguredTimerStrategy()
As @nikmd23 said, we know this is about as bad as what you could ever want to do but v2 will see a much much more simple way of doing this.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments