Here is the way, but its not very nice and not supported:
- Get MessageBroker for the following static method:
Glimpse.Core.Framework.GlimpseConfiguration.GetConfiguredMessageBroker()
- Then post the ITimelineMessage message to MessageBroker:
messageBroker.Publish(timelineMessage)
- Note: you can create a generic message type that you use again that implements
ITimelineMessage
- To fill in the properties of your ITimelineMessage implementation, you may also need
IExecutionTimer
. You can get this through the following static method:Glimpse.Core.Framework.GlimpseConfiguration.GetConfiguredTimerStrategy()
- The above will have an idea of โโwhen the request started for offsets, etc.
As @ nikmd23 said, we know that this is about as bad as what you could ever do, but v2 will see a much easier way to do this.
source share