Get Calling appliucation

  • Thread starter Thread starter Farouche
  • Start date Start date
F

Farouche

Hi All


I have a small problem.

I have an application which has a reference to a dll component.


From the app I call a method on a class on the component. How can I from
this method determine the name of the application calling the method.

If I use "System.Reflection.Assembly.GetCallingAssembly().FullName" I get
the name of the component


Thanks in advance

Allan
 
From the app I call a method on a class on the component. How can I from
this method determine the name of the application calling the method.

I found out:

System.Threading.Thread.CurrentThread.GetDomain.FriendlyName



Seems to work



Allan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top