1..基于性能的考虑,优先使用Per-Call
2.避免Per-Session,Singleton
3.如果用Per-Session的话,则在Contract上设置[OperationContract(SessionMode=SessionMode.Required)]
4.如果用Per-Call,则在Contract设置
[OperationContract(SessionMode=SessionMode.NotAllowed)]
5.不要把Per-Session/Per-Call等不同的Service Contract用在同一个Service上
6.对于Per-Session Sevice, 避免使用分布操作Demarcating Operation/实例停用Instance(Context Deactivation).