title: How to find out which assembly handled the request
body: <p>I have a Web solution which contains two projects (<strong>A</strong> and <strong>B</strong>) with <strong>B</strong> referencing <strong>A</strong>.</p>
  
  <p>In <strong>A</strong> I have an <code>Html</code> extension method that obviously can be called from either <strong>A</strong> or <strong>B</strong>.</p>
  
  <p>My question is once the method is called (usually from a partial view) is there a way inside the method to figure out whether the call came from Assembly <strong>A</strong> or Assembly <strong>B</strong> without passing anything to it?</p>
  
  <p>I tried to see if I can do anything with <code>HttpContext.Current.Request</code> but could not find anything useful. I can get the URI but that still does not tell me which assembly the file that originated the Request is in.</p>
  
  <hr>
  
  <p>Thanks for your answers - the method returns a string and the string is from a string.resx file which I have one for each assembly. That is why I need to know which file to access to return the string. Since each assembly "registers" itself on start up if I add a new assembly my method will not change, since it will just look up the assembly.In fact  my whole project will not change. The reason why I am not introducing another parameter at this time is b/c it will mean a HUGE amount of changes and I honestly don't see the benefit. While I see your point and I generally agree with it I think in my case it's not that the method returns different things , it's just grabbing the correct resource file based on the assembly.</p>