Share via


Como: Configure canais

The seguinte exemplo, shows How to Compilação an HttpChannel with a name that is different from "http" and Use IT for a aplicativo servidor.

Exemplo

<configuration>
 <system.runtime.remoting>
    <application>
      <service>
        <wellknown 
          type="Type,Assembly" 
          mode="Singleton" 
          objectUri="endpoint"
        />
      </service>
      <channels>
        <channel ref="OtherChannel"/>
      </channel>
    </application>
    <channels>
      <channel 
        id="OtherChannel"
        type="CompleteTypeInformation including versiong and strong-name information"
      />
    </channels>
 </system.runtime.remoting>
</configuration>

Consulte também

Conceitos

Configuração de aplicativos remoto

Canais

Registro de canal

Registro do lado do servidor

Registro do cliente

Registro de canal

Referência

System.Runtime.Remoting.RemotingConfiguration Class

Outros recursos

Registering Remoto Objects Using Configuration Files

Visão geral sobre a arquitetura de comunicação remota do .NET Framework