Don,
The thing is you can't really access the BinaryFormatter instance thats used by the 
BinaryClient(Server)SerializerSink so you can't really set the SurrogateSelector 
property :) 
John

-----Original Message-----
From: Browning, Don [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Passing a Surrogate to the
BinaryFormatter used by the Remoting infrastructure


> This may be a stupid question, I need to pass a Surrogate
> Selector to the BinaryFormatter that is used by the Remoting
> infrastructure, any ideas on how this can be done. I thought
> maybe the BinaryClientFormatterSink or the
> BinaryServerFormatterSink would have a property that allows
> me access to the Formatter but that wasn't the case.

Take a look at the SurrogateSelector property on the BinaryFormatter, it allows you to 
set the Selector used during the serialization phase...

As for you second question, I need to look into that one.. Stay tuned...

Don


> -----Original Message-----
> From: Abdulla, Jehangir [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 03, 2003 9:09 AM
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] Passing a Surrogate to the
> BinaryFormatter used by the Remoting infrastructure
>
>
On the
> same note, if I can pass in my own SurrogateSelector I could
> also pass in my own custom Binder to the Formatter ? Any
> ideas guys on how this can be done ? Thanks, John
>

Reply via email to