write a example for remoting (code)
Answers were Sorted based on User's Feedback
Answer / arunkumar thimma
public class CommonClass : MarshalByRefObject
{
public string FirstName;
public string LastName;
public string GetWelcomeString()
{
Console.WriteLine("Welcome " + FirstName + " " + LastName);
return "Welcome " + FirstName + " " + LastName;
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / arunkumar thimma
static void Main(string[] args)
{
TcpChannel tcpChannel = new TcpChannel(8084);
ChannelServices.RegisterChannel(tcpChannel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ClassLibrary1.CommonClass),
"testRemoting", WellKnownObjectMode.Singleton);
Console.WriteLine("Server is ready");
Console.ReadLine();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
What are static assemblies and dynamic assemlies. Differences between them ?
what are the various type of channels used by .Net remoting and which is the best one?
How do you define the lease of the object?
In which conditions do you opt for Remoting services?
8 Answers Manland, Tech Mahindra,
What is a strong name?
Which namespace is used for encryption ?
What is the Difference between CAO and SAO in Remoting.
What do you know about .NET assemblies?
Explain how does assembly versioning in .net prevent dll hell?
Can you configure a .NET Remoting object via XML file?
What do you mean by passport authentication?
Are you aware of containment and Aggregation ?