Getting name of Proxy Object

I have a Server and Client distributed Application(Through Remoting)

From Client Form I assign Remotable object to my Interface variable

Dim BizOrgInfo as IBiz (My Facade Interface)
 
BizOrgInfo=Activator.GetObject(Type,URI) 
(URI=BizLayer.OrgInfo.rem and OrgInfo is the Class Name in Bizlayer)

Then I call a commonUtility dll

Dim Common as CommonUtility
Common.InsertData(BizOrgInfo)

In CommonUtility

Public sub InsertData(obj as IBiz)
    returnValue=obj.InsertData()
End Sub

Now my problem is I want to know the sending Name of obj in CommonUtility which means I want the name BizOrgInfo/OrgInfo within CommonUtility dll.

If anyone help me, Please. Some lines of codes will be very benificial, If you don't mind.


Answer this question

Getting name of Proxy Object

  • Getting name of Proxy Object