echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » 一种让WCF服务实例长期存在的方法 仲子说

2011-05-17

一种让WCF服务实例长期存在的方法

Posted in .NET at 15:14 Author:仲远

标签:

??????????????????WCF??????????????????????????API???????.NET??????WCF????????????????????1?WCF??????Client????????WCF????????????????????????????????????2?????IIS???WCF???????????IIS?????????????????????????????WCF????????????????????Client?????WCF??????

????????IIS?????????WCF????????????????????

?1??service??????????InstanceContextMode = InstanceContextMode.Single??????

[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
public class Service1 : IService1
{

}

?2??IIS Manager??????IIS Server Name???????”Application Pools”??????Actions->Set Application Pool Defaults?????????????????
a) ProcessModel -> Idle Time-out(minutes): 0 ????20???
b) Recycling -> Regular Time Interval(minutes): 0 ????1740???
IIS Setting

??????????????WCF Service??????IIS????????????????????????IIS??????????????????????WCF???????????????????IIS????????????????????????????????

?????WCF????????????????????

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word