HighTechTalks DotNet Forums  

Getting channel informations

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Getting channel informations in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AceBear
 
Posts: n/a

Default Getting channel informations - 12-23-2004 , 10:47 AM






I want to get some information about the Channels that
were registered as the result of calling
RemotingConfiguration.Configure(...).


ChannelServices.RegisteredChannels returns an IChannel
[], but an IChannel doesn't seem to contain as much
information as I would like.

I want to know is the hannel using http or tcp, if it's
a tcp channel which port does it use ....

Any suggestions?

Thanks



Reply With Quote
  #2  
Old   
Sam Santiago
 
Posts: n/a

Default Re: Getting channel informations - 12-23-2004 , 04:22 PM






Checkout the ChannelServices.RegisteredChannels method. It will return an
array of IChannel objects. You can then test to see if each object is of
the HttpChannel or TcpChannel type (or any other class the implements the
IChannel interface). You can then invoke members of each class to extract
the information you need.

Thanks,

Sam

--
_______________________________
Sam Santiago
ssantiago (AT) n0spam-SoftiTechture (DOT) com
http://www.SoftiTechture.com
_______________________________
"AceBear" <vast_m_bear (AT) yahoo (DOT) com> wrote

Quote:
I want to get some information about the Channels that
were registered as the result of calling
RemotingConfiguration.Configure(...).


ChannelServices.RegisteredChannels returns an IChannel
[], but an IChannel doesn't seem to contain as much
information as I would like.

I want to know is the hannel using http or tcp, if it's
a tcp channel which port does it use ....

Any suggestions?

Thanks





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.