What are the differences between Marshal by value and
Marshal by reference?
Answer Posted / m.m.suhail
MBV:In this Server Creates a exact Copy of the Object and
sends it to the Client.Which can be used by the Client with
in its AppDomain with out making any further calls to the
server.
But this has a drawback,the copy sent to client will be
static and will not reflect the subsequent changes.So its
better not to use MBV when there are constant updates.
MBR:DotNet Framework creates a Proxy on the Client
AppDomain which the client uses for accessing the Objects
on the Server.We need to extend 'MarshalByRefObject' for
this.
But this to has a drawback,it increases the network traffic
as there can ba number of accesses to the Server.
So its depends upon our requirement.Small objects with
frequent accesses,we can go with MBR and huge Objects with
relatively low accesses we can go with MBV.
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What are the different types of channels used by .net remoting and which is the best one?
What do you mean by passport authentication?
How do you directly call a native function exported from a DLL?
Define proxy in .net remoting?
Define the lease of the object?
What are the steps to publish an object outside the service domain
Are you aware of containment and Aggregation ?
Explain how does assembly versioning in .net prevent dll hell?
Define delegates and events?
what is Client-activated object in remoting?
Can you explain remoting?
Which one is better WebService and Remoting ?
What are the threading types?
I am developing a project.Title is "Remote Demonstator".Using asp.net and C# Abstact: While administrator moving mouse and clicking on any link in the webpage that action will be performed in Server machine as well as in client machine.The client initially have to log-in and make a phone call to the admin. This is my project. How can i get this? I can create a website but this concept i have to implement in my website.How can i achive this? How to get client system control and how my mouse movings can be visible to client? I request all to please give me a basic idea or some hint. Advance Thanks.
What is the proxy of the server object in .net remoting?