how i should create RemotableType?

skpaul

New member
Joined
Mar 18, 2011
Messages
1
Programming Experience
Beginner
Dear Friend,

I am working with a .Net 3.5 remoting application. For example, it has following functions-

1. Add, Edit, Delete branch
2. Add, Edit, Delete zone
3. Add, Edit, Delete employee

As a remote object, i have the following class:

My first question is how i should create RemotableType.dll.
individual .dll for individual function as below?


imports System
Public Class clsAddBranch
Inherits MarshalByRefObject
Public Function AddBranch() As boolean
.....
......
End Function
End Class


or, all function in a single .dll as below?


imports System
Public Class clsAllFunctions
Inherits MarshalByRefObject
Public Function AddBranch() As boolean
.....
......
End Function

Public Function AddZone() As boolean
.....
......
End Function

End Class


if i opt for the first method (individual .dll for individual function), then how would be my host application? individual host app for individual .dll?

i am just learning remoting. Any help would be appreciated.
 
Back
Top