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
 
Back
Top