Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: Remote Desktop like component Pin
Alex Korchemniy8-Sep-05 8:49
Alex Korchemniy8-Sep-05 8:49 
Questionmultiple instances of the same dll using appdomain Pin
Peter Madsen8-Sep-05 6:51
Peter Madsen8-Sep-05 6:51 
AnswerRe: multiple instances of the same dll using appdomain Pin
Andy Brummer8-Sep-05 19:12
sitebuilderAndy Brummer8-Sep-05 19:12 
QuestionSourceSafe with C# Standard Pin
BazM8-Sep-05 6:33
BazM8-Sep-05 6:33 
AnswerRe: SourceSafe with C# Standard Pin
Alex Korchemniy8-Sep-05 9:14
Alex Korchemniy8-Sep-05 9:14 
GeneralRe: SourceSafe with C# Standard Pin
BazM8-Sep-05 9:43
BazM8-Sep-05 9:43 
GeneralRe: SourceSafe with C# Standard Pin
Alex Korchemniy8-Sep-05 10:05
Alex Korchemniy8-Sep-05 10:05 
Question.NET Remoting question Pin
Asad Hussain8-Sep-05 6:02
Asad Hussain8-Sep-05 6:02 
I'm new to remoting and not very articulate so bear with me here. I have an object that needs to be queried by a remote client but it inherits from some other class already.

public MyClass : SomeBaseClass
{ 
  public string GetName { return "name"; }
}


So I made a remoting object like so

public class RemotingObject : MarshalByRefObject 
{
  private MyClass c;
  
  public RemotingObject( ) { }

  public setClass( MyClass start )
  { c = start; }

  public string GetName( )
  {
    return c.GetName( );
  }
}


and a server like so
public class RemotingServer
{
	public RemotingServer()
	{
		TcpChannel channel = new TcpChannel( 8080 );
		ChannelServices.RegisterChannel( channel );
  
		RemotingConfiguration.RegisterWellKnownServiceType( 
			typeof( RemotingObject ), 
			"RemotingObject", 
			WellKnownObjectMode.Singleton );
	}
}


My question is that how can I pass a MyClass object to the remotable object after it is created? Is is possible to pass it in the constructor of the remotable object?

Thanks.
AnswerRe: .NET Remoting question Pin
S. Senthil Kumar8-Sep-05 7:27
S. Senthil Kumar8-Sep-05 7:27 
QuestionWinforms Datagrid New Row Pin
airbus3808-Sep-05 5:57
airbus3808-Sep-05 5:57 
AnswerRe: Winforms Datagrid New Row Pin
miah alom8-Sep-05 6:12
miah alom8-Sep-05 6:12 
GeneralRe: Winforms Datagrid New Row Pin
airbus3808-Sep-05 6:46
airbus3808-Sep-05 6:46 
GeneralRe: Winforms Datagrid New Row Pin
miah alom8-Sep-05 8:04
miah alom8-Sep-05 8:04 
GeneralRe: Winforms Datagrid New Row Pin
airbus3808-Sep-05 9:02
airbus3808-Sep-05 9:02 
GeneralRe: Winforms Datagrid New Row Pin
miah alom8-Sep-05 10:23
miah alom8-Sep-05 10:23 
GeneralRe: Winforms Datagrid New Row Pin
airbus3808-Sep-05 9:03
airbus3808-Sep-05 9:03 
GeneralRe: Winforms Datagrid New Row Pin
miah alom8-Sep-05 10:24
miah alom8-Sep-05 10:24 
QuestionC++ to C# Wrapper with Templates Pin
mxb1218-Sep-05 5:42
mxb1218-Sep-05 5:42 
AnswerRe: C++ to C# Wrapper with Templates Pin
John Fisher8-Sep-05 7:34
John Fisher8-Sep-05 7:34 
QuestionDefault Parameters in C# Pin
Anonymous8-Sep-05 4:56
Anonymous8-Sep-05 4:56 
AnswerRe: Default Parameters in C# Pin
Dan Neely8-Sep-05 5:41
Dan Neely8-Sep-05 5:41 
Question Retrieving the form in Application.Run() ? Pin
Johan Glysing8-Sep-05 4:05
Johan Glysing8-Sep-05 4:05 
AnswerRe: Pin
Stefan Troschuetz8-Sep-05 4:45
Stefan Troschuetz8-Sep-05 4:45 
GeneralRe: Pin
Johan Glysing8-Sep-05 19:04
Johan Glysing8-Sep-05 19:04 
GeneralRe: Pin
Stefan Troschuetz8-Sep-05 20:26
Stefan Troschuetz8-Sep-05 20:26 

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.