Click here to Skip to main content
15,900,405 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Remoting. I Just Don't Get It Pin
#realJSOP5-Sep-07 10:23
professional#realJSOP5-Sep-07 10:23 
AnswerRe: Remoting. I Just Don't Get It Pin
Marc Clifton5-Sep-07 9:57
mvaMarc Clifton5-Sep-07 9:57 
GeneralRe: Remoting. I Just Don't Get It Pin
#realJSOP5-Sep-07 10:22
professional#realJSOP5-Sep-07 10:22 
GeneralRe: Remoting. I Just Don't Get It Pin
Marc Clifton5-Sep-07 10:33
mvaMarc Clifton5-Sep-07 10:33 
GeneralRe: Remoting. I Just Don't Get It Pin
#realJSOP6-Sep-07 9:41
professional#realJSOP6-Sep-07 9:41 
GeneralRe: Remoting. I Just Don't Get It Pin
led mike6-Sep-07 10:43
led mike6-Sep-07 10:43 
GeneralRe: Remoting. I Just Don't Get It Pin
Marc Clifton6-Sep-07 10:57
mvaMarc Clifton6-Sep-07 10:57 
AnswerRe: Remoting. I Just Don't Get It Pin
led mike5-Sep-07 10:34
led mike5-Sep-07 10:34 
Well I am far from an expert, and worked only in 2.0 version, no WFC experience, but...

The server has the "real" object and the client gets a proxy. The framework takes care of all all the networking and marshaling. The only parts you have to take care of are authoring the class to inherit System.MarshalByRefObject and configuration and maybe a server process (you can use IIS to host as server). Unfortunately there are many choices which complicates trying to get your head around it. I followed the Remoting Chapter in a book that started with the simplest and worked up through I think all of them in complete executing examples.

So like the first example goes something like this:

1) you create a MarshalByRefObject class in an assembly project. (very little code)
with a simple method.

here is what I used
public string GetTime(string sid)
{
	string sret = String.Format("{0}@{1}", sid, DateTime.Now.ToUniversalTime().ToString());
	Console.WriteLine("NetTime.GetTime: {0}", sret);
	return sret;
}

2) you create a Server process project (Console) that references the assembly from step #1,
sets up the Channel(s) (port and/or protocol)
and registers the class. (very little code)
and does ???? to keep executing of course.

3) you create or use a client process project to reference the assembly
the client code asks for the proxy instance by providing the Channel information. (very little code)
and finally having the proxy object, calls the method.

That example has all the channel information hard coded, then you do one that uses a config file to contain the channel information then you do one that uses IIS to host as the Server. All of these require very little code.

The book was "Professional C# 2005"



Questionvs.net 2005 installation help Pin
ManiMughal5-Sep-07 8:57
ManiMughal5-Sep-07 8:57 
AnswerRe: vs.net 2005 installation help Pin
rohitsrivastava9-Sep-07 20:58
rohitsrivastava9-Sep-07 20:58 
Questionvs.net 2005 installation help Pin
ManiMughal5-Sep-07 8:56
ManiMughal5-Sep-07 8:56 
AnswerRe: vs.net 2005 installation help Pin
Colin Angus Mackay5-Sep-07 9:19
Colin Angus Mackay5-Sep-07 9:19 
QuestionTo get/set comments on VSS Item Programmatically Pin
Mushtaque Nizamani5-Sep-07 5:15
Mushtaque Nizamani5-Sep-07 5:15 
Question.Net programing Pin
ali_reza_zareian5-Sep-07 2:48
ali_reza_zareian5-Sep-07 2:48 
AnswerRe: .Net programing Pin
originSH5-Sep-07 3:03
originSH5-Sep-07 3:03 
AnswerRe: .Net programing Pin
Dave Kreskowiak5-Sep-07 4:56
mveDave Kreskowiak5-Sep-07 4:56 
GeneralRe: .Net programing Pin
originSH5-Sep-07 6:24
originSH5-Sep-07 6:24 
GeneralRe: .Net programing Pin
Dave Kreskowiak5-Sep-07 14:08
mveDave Kreskowiak5-Sep-07 14:08 
GeneralRe: .Net programing Pin
Paul Conrad8-Sep-07 4:30
professionalPaul Conrad8-Sep-07 4:30 
AnswerRe: .Net programing Pin
Thomas Stockwell7-Sep-07 5:36
professionalThomas Stockwell7-Sep-07 5:36 
AnswerRe: .Net programing Pin
rohitsrivastava9-Sep-07 21:03
rohitsrivastava9-Sep-07 21:03 
QuestionWord Addins Pin
som84835-Sep-07 2:21
som84835-Sep-07 2:21 
AnswerRe: Word Addins Pin
Paul Conrad4-Nov-07 7:35
professionalPaul Conrad4-Nov-07 7:35 
QuestionRemoting Pin
#realJSOP5-Sep-07 1:25
professional#realJSOP5-Sep-07 1:25 
AnswerRe: Remoting Pin
originSH5-Sep-07 1:50
originSH5-Sep-07 1:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.