Jump to content
Xtreme .Net Talk

Get the name of a application using an class library from within the class library


Recommended Posts

Guest daftpunknl
Posted

I`m making a class library that takes care of sqlconnections for an application and ff the a query fail i get an email with the query and sql error message.

 

The class library is used by several applications. I want to include the name of the applicate in the email when an query fails.

 

So my question is how can I access information about an application that uses an class library from within the class library?

 

Also: am i correct if i say a class library is (exactly) the same as an assembly?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...