You can use the constructor with the IDictionary interface to set the name,
priority, port, proxy, etc.
There is an example in Professional C# (1st and 2nd edition).
With the .NET release it is also in the MSDN library: "Channel and Formatter
Configuration Properties".

Christian
http://christian.nagel.net


> -----Original Message-----
> From: Dean Cleaver [mailto:[EMAIL PROTECTED]]
> Sent: Samstag, 11. Mai 2002 04:52
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Remoting problems...
>
>
> I'm having some problems with remoting, and wondered if I am
> attacking this right...
>
> I have a singleton (which opens a COM port hence must be a
> singleton) which needs to be available remotely, however it
> also requires to be consumed by the service which is also
> it's remote host.
>
> I am trying to register 2 TcpChannels, and it fails saying
> that they have to have different names. This snipped from the help:
>
> This property is used to retrieve a specific channel when
> calling GetChannel. If this property is not set, the system
> defaults to "tcp". If you want to register more than one
> TcpChannel, each must have a unique name. Set this property
> to the Empty string ("") if you want to ignore names, but
> avoid naming collisions. The system will allow any number of
> channels with the Empty.
>
> However, that property is read only... So how on earth do you
> set it? I've looked at constructors etc... No joy.
>
> Any suggestions? Either advice on how to create the 2
> channels, or advice on how to not require to use remoting to
> the singleton from it's host service would be appreciated -
> but I absolutely must only have one instance of the class due
> to the COM port requirement.
>
> Cheers,
> Dino
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.361 / Virus Database: 199 - Release Date: 07/05/2002
>
> You can read messages from the DOTNET archive, unsubscribe
> from DOTNET, or subscribe to other DevelopMentor lists at
> http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to