![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I created a custom client formatter sink to pass some information. I can create it as follows: BinaryClientFormatterSinkProvider binarySink = new BinaryClientFormatterSinkProvider(); ClientSecuritySinkProvider secureSink = new ClientSecuritySinkProvider(username, password); secureSink.Next = binarySink; _tcpChannel = new TcpClientChannel("tcp", secureSink); ChannelServices.RegisterChannel(_tcpChannel); This works the first time. However, if I call: ChannelServices.RegisterChannel(_tcpChannel); and then reexecute the code with a different username and password, the first channel is still being used although I unregistered it! I verified that the new channel is being created with a new username and password. So, for some reason, the first created channel continues to be used. What could I be doing wrong? The only way I can stop using the original channel is to restart my application. Thanks, Gary H |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |