Adding Runtime Intelligence Application Analytics for a library and not an application

Posted by brickner on Stack Overflow See other posts from Stack Overflow or by brickner
Published on 2010-05-29T12:44:20Z Indexed on 2010/05/29 14:02 UTC
Read the original article Hit count: 247

I want to add usage statistics for a .NET 4.0 library I write on CodePlex.

I try to follow the step described here but my problem lies with the fact that what I write is a library and not an application.

One of the steps is put the Setup and Teardown attributes. I thought about adding the Setup attribute on a static constructor or a different place that will run once per usage of the library. My problem lies with the Teardown attribute that should be placed on code that ends the usage. I don't know where to put this attribute.

Is it possible to get usage statistics on a library?

Maybe I can register on an event that will fire when the application unloads the dll?

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about .net-4.0