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 |
About Iunknown interface Queue ,its methods Query Interface Addref,Release and Explain each ?
Hello, I want to connect a system in LAN and i want to access that.When ever i am moving a mouse in my desktop the similar thing have to happend in the another system in which i have connected. I need coding for this in c# and .NET . any one please help me.It is very urgent to me Advance thanks. my email id:manojkumarchallagundla@gmail.com
What is the difference between the RegisterWellknownServiceType(), RegisterWellknownClientType(), RegisterActivatedServiceType() and RegisterActivatedClientType() in .net?
How are the activation URLs different in case of SAO and CAO in .NET remoting?
What is boxing and unboxing ?
4 Answers Amdocs, BirlaSoft, TCS,
What do you mean by passport authentication and windows authentication ?
What is the purpose of strong name?
What is unmanaged code?
What are the ways to configure remoting objects before client can use them?
Which Namespaces is used to achieve the Remoting?
How can objects in two diff. App Doimains communicate with each other ?
What are different types of assemblies?