.NET Remoting之Singleton vs SingleCall

远程对象的服务器激方式:

Singleton --- 每个传入的消息由同一个对象实例提供服务。

SingleCall --- 每个传入的消息由新的对象实例提供服务。

 

.NET Remoting之Singleton vs SingleCall RemotingConfiguration.RegisterWellKnownServiceType
.NET Remoting之Singleton vs SingleCall                (
.NET Remoting之Singleton vs SingleCall                
typeof (HelloServer),
.NET Remoting之Singleton vs SingleCall                
" SayHello " ,
.NET Remoting之Singleton vs SingleCall                WellKnownObjectMode.SingleCall
.NET Remoting之Singleton vs SingleCall                );
.NET Remoting之Singleton vs SingleCall            
上例中,每次调用SayHello都会用新的HelloSever对象产生

你可能感兴趣的:(Singleton)