Partager via


How to: Configure the Lifetime of a Client-Activated or Server-Activated Remote Object 

The following code demonstrates a very simple lifetime configuration for a remote object.

Example

<configuration>
   <system.runtime.remoting>
     <application>
        <lifetime 
          leaseTime = "10M" 
          sponsorshipTimeOut = "2M"
          renewOnCallTime = "2M" 
          LeaseManagePollTime = "10s"
        />
     </application>
   </system.runtime.remoting>
</configuration>

See Also

Reference

System.Runtime.Remoting.RemotingConfiguration Class

Concepts

Configuration of Remote Applications
Channels
Channel Registration
Server-Side Registration
Client-Side Registration
Channel Registration

Other Resources

Registering Remote Objects Using Configuration Files
.NET Framework Remoting Overview