Thanks Ingo,

It was a really good news ! I think that the customer can accept the
http protocol overhead just for secure transactions. They have only 7 or
8 secure interfaces.

Best regards,
Wilson.

-----Original Message-----
From: Ingo Rammer [mailto:[EMAIL PROTECTED]] 
Sent: Viernes, 19 de Abril de 2002 05:21 a.m.
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Channel sinks and remoting configuration

Hi Wilson,

> Is a little difficult to explain, please, let me know if it
> is not clear or if you need further information.

It's clear for me ;). You have two tcp channels (with different channel
sinks) and exactly want to specify which call passes through which
channel.

The short story: this isn't possible.

The long story: well, maybe. Out-of-the box the decision for channels is
made based on the protocol of the URL. If you use an "http://"-url, the
HTTPChannel is taken and for "tcp://"-Urls the TCPChannel will be used.
So
far so good ... if you can managed the secure calls to be running via an
HTTPChannel, everything should be ok.

You'll then use config information like this (only partially shown ...
server side will look similar):

-------- snip (only parts!) ---------
<channel ref="tcp" port="0">
 <clientProviders>
  <formatter ref="binary" />
  </clientProviders>
</channel>
<channel ref="http" port="0">
 <clientProviders>
  <formatter ref="binary" />
   <provider type="Framework.Core.SecureClientChannelSinkProvider,
SecureChannel" algorithm="RC2"/>
  </clientProviders>
</channel>

<wellknown type="Framework.Core, fwkcore"
url="tcp://localhost:6000/Dispatcher.rem"/>
<wellknown type="Framework.Core, fwkcore"
url="http://localhost:6001/SecureDispatcher.rem"/>
----------------------------------------

This is how it's supported out of the box.

Depending on your degree of confidence in Microsoft not removing or
renaming
private methods and properties, you could also use Reflection to access
the
private members of the Proxy
[TransparentProxy->_rp(RemotingProxy)->_identity(Identity)->_channelSink
(IMe
ssageSink)] to dynamically reconfigure the sink chain for a certain
remote
object.

HTH,
-Ingo

Author of "Advanced .NET Remoting"
http://www.dotnetremoting.cc

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