Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

The case for a channel-schema concept

, 17 May 2003
An article about .NET remoting channel schemas
channel-schema_src.zip
Channel Schema Solution
Channel Schema Solution.suo
InterfaceLibrary
App.ico
InterfaceLibrary.csproj.user
RemotingClient
App.ico
RemotingClient.csproj.user
RemotingServer
App.ico
RemotingServer.csproj.user
SecureChannel
SecureChannel.csproj.user
SecureChannelC#.snk
TestLibrary
TestLibrary.csproj.user
TwoWayChannel
TwoWayChannel.csproj.user
<?xml version="1.0" encoding="utf-8" ?> 

<configuration>
	<system.runtime.remoting>
		<channels>
  			<channel id="tcp" type="Custom.Remoting.Channels.TcpChannel, TwoWayChannel" displayName="TwoWay Tcp Channel" />
			<channel id="http" type="Custom.Remoting.Channels.HttpChannel, TwoWayChannel" displayName="TwoWay Http Channel" />
		</channels>

		<application>

		<service>
			<wellknown mode="Singleton" type="TestLibrary.KnossosObject, TestLibrary" objectUri="KnossosObject.rem" />
			<wellknown mode="Singleton" type="TestLibrary.ZakrosObject, TestLibrary" objectUri="ZakrosObject.soap" />
		</service>

		<channels>
			<channel ref="http" port="9090" channel-schema="http-binary" name="Two way http-binary channel" />
			<channel ref="tcp" port="9000" channel-schema="tcp-soap" name="Two way tcp-soap channel" />
			
			<channel ref="http" port="6789" channel-schema="http-secure" name="Two way http-secure channel">
				<clientProviders>
					<formatter ref="binary" />
					<provider
						type="MsdnMag.Remoting.SecureClientChannelSinkProvider, SecureChannel"
						algorithm="DES"
						oaep="false"
						maxRetries="1"
					/>
				</clientProviders>
				<serverProviders>
					<provider
						type="MsdnMag.Remoting.SecureServerChannelSinkProvider, SecureChannel"
						algorithm="DES"
						oaep="false"
						requireSecurity="true"
						securityExemptionList="127.0.0.1; 207.46.230.220"
						connectionAgeLimit="120"
						sweepFrequency="60"
					/>
					<formatter ref="binary" />
				</serverProviders>
			</channel>
		</channels>

    </application>
  </system.runtime.remoting>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Wytek Szymanski
Web Developer
United States United States
I am a consultant, trainer, software archtect/engineer, since the early 1980s, working in the greater area of Boston, MA, USA.
 
My work comprises the entire spectrum of software, shrink-wrapped applications, IT client-server, systems and protocol related work, compilers and operating systems, and more ....
 
I am currently focused on platform development for distributed computing in service oriented data centers.

| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 18 May 2003
Article Copyright 2003 by Wytek Szymanski
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid