0

Is there any possibility to post Glimpse or Mini-Profiler log information to a web api / webservice in order to separate the logged data storing (saving to a database) part from the main application.

We would be able to capture Mini-Profiler logged data within the Application_EndRequest() but we can not use any asynchronous calls to post data into web api inside this method. Any help or advice would be really appreciated.

Thanks DSR

DSR
  • 4,588
  • 29
  • 28

2 Answers2

1

Glimpse has an interface called IPersistenceStore that is used persist "logged data".

You could implement that interface and persist the data in any way you'd like.

nikmd23
  • 9,095
  • 4
  • 42
  • 57
1

You can do this with MiniProfiler by creating your own implementation of IStorage that will define your logic for storing and retrieving profiles into/from your api/webservice and set MiniProfiler.Settings.Storage to your implementation. You can also use MultiStorageProvider to define more than one storage location.

Yaakov Ellis
  • 40,752
  • 27
  • 129
  • 174