How to display timeline information for routines used by controllers in glimpse/Asp.NET MVC

alcoforado

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 ?

anthonyv

Here is a way but its not very nice and not supported:

  • Retrieve the MessageBroker for the following static method:
    • Glimpse.Core.Framework.GlimpseConfiguration.GetConfiguredMessageBroker()
  • Then publish an ITimelineMessage to the MessageBroker:
    • messageBroker.Publish(timelineMessage)
    • Note, you could create a generic message type that you use over again that implements ITimelineMessage
  • To populate the properties of your ITimelineMessage implementation you might also need IExecutionTimer. You can get this via the following static method:
    • Glimpse.Core.Framework.GlimpseConfiguration.GetConfiguredTimerStrategy()
    • The above will have the knowledge of when the request started for offsets etc.

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to display timeline information for routines used by controllers in glimpse/Asp.NET MVC

From Dev

How are Controllers used with MVC in Extjs application

From Dev

ASP.NET.MVC 5 How can i display information about who created an element?

From Dev

How to use Bootstrap Timeline to display Data in ASP.NET C#

From Dev

How to display Enum as DropDownList in .Net MVC Core

From Dev

How to change link display for posts to linkedin timeline

From Dev

How to reference controllers in Swift (MVC)

From Dev

How do I sub in JSON.NET as model binder for ASP.NET MVC controllers?

From Dev

Controllers in subfolders ASP.Net MVC 4

From Dev

Subfolder in Controllers ASP.NET MVC

From Dev

How to display spinning wheel while going through all updating routines?

From Dev

How to Properly Test Controllers in ASP.net MVC that has database calls

From Dev

How do you unit test ASP.NET Core MVC Controllers that return anonymous objects?

From Dev

.NET MVC 4 : How to set a Partial View shared in multiple Views of different Controllers

From Dev

How to Properly Test Controllers in ASP.net MVC that has database calls

From Dev

How do you unit test ASP.NET Core MVC Controllers that return anonymous objects?

From Dev

ASP.NET MVC two controllers with same name, how to specify view location

From Dev

How can I reposition tooltips used to display information about highlighted points after zooming in on a flot graph?

From Dev

How can I reposition tooltips used to display information about highlighted points after zooming in on a flot graph?

From Dev

How to display saved image in a folder in ASP.net MVC

From Dev

How to display database records in asp.net mvc view

From Dev

How to display saved image in a folder in ASP.net MVC

From Dev

How to Use/ Display a Asp.net DataList in MVC Razor View

From Dev

ASP.NET MVC DataAnnotations - How to localize Display / Prompt

From Dev

How to display doc file in browser Mvc.net

From Dev

asp.net MVC how to display values in collection

From Dev

How to display multiple DropDownLists and get values in ASP.Net MVC

From Dev

How to display controllers and actions from list in view?

From Dev

How do I display custom profile information with VS2013 MVC5 templates?

Related Related

  1. 1

    How to display timeline information for routines used by controllers in glimpse/Asp.NET MVC

  2. 2

    How are Controllers used with MVC in Extjs application

  3. 3

    ASP.NET.MVC 5 How can i display information about who created an element?

  4. 4

    How to use Bootstrap Timeline to display Data in ASP.NET C#

  5. 5

    How to display Enum as DropDownList in .Net MVC Core

  6. 6

    How to change link display for posts to linkedin timeline

  7. 7

    How to reference controllers in Swift (MVC)

  8. 8

    How do I sub in JSON.NET as model binder for ASP.NET MVC controllers?

  9. 9

    Controllers in subfolders ASP.Net MVC 4

  10. 10

    Subfolder in Controllers ASP.NET MVC

  11. 11

    How to display spinning wheel while going through all updating routines?

  12. 12

    How to Properly Test Controllers in ASP.net MVC that has database calls

  13. 13

    How do you unit test ASP.NET Core MVC Controllers that return anonymous objects?

  14. 14

    .NET MVC 4 : How to set a Partial View shared in multiple Views of different Controllers

  15. 15

    How to Properly Test Controllers in ASP.net MVC that has database calls

  16. 16

    How do you unit test ASP.NET Core MVC Controllers that return anonymous objects?

  17. 17

    ASP.NET MVC two controllers with same name, how to specify view location

  18. 18

    How can I reposition tooltips used to display information about highlighted points after zooming in on a flot graph?

  19. 19

    How can I reposition tooltips used to display information about highlighted points after zooming in on a flot graph?

  20. 20

    How to display saved image in a folder in ASP.net MVC

  21. 21

    How to display database records in asp.net mvc view

  22. 22

    How to display saved image in a folder in ASP.net MVC

  23. 23

    How to Use/ Display a Asp.net DataList in MVC Razor View

  24. 24

    ASP.NET MVC DataAnnotations - How to localize Display / Prompt

  25. 25

    How to display doc file in browser Mvc.net

  26. 26

    asp.net MVC how to display values in collection

  27. 27

    How to display multiple DropDownLists and get values in ASP.Net MVC

  28. 28

    How to display controllers and actions from list in view?

  29. 29

    How do I display custom profile information with VS2013 MVC5 templates?

HotTag

Archive