Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
关于WCF会话、InstanceContextMode、ConcurrencyMode等的一些基本查询_Wcf - Fatal编程技术网

关于WCF会话、InstanceContextMode、ConcurrencyMode等的一些基本查询

关于WCF会话、InstanceContextMode、ConcurrencyMode等的一些基本查询,wcf,Wcf,我是WCF的新手。所以经常关注wcf代码和文章。在查看了许多代码之后,我 经常被困在非常基本的事情上,没有就下面的问题进行详细的讨论。 所以这里是我的几个基本问题……希望通过示例情况和示例代码进行详细讨论 问题A 只需简单地告诉我SessionMode.Required、SessionMode.Allowed的含义是什么 SessionMode.Required和SessionMode.Allowed之间有什么区别 默认会话模式是什么 我见过有人开发wcf服务,但并没有指定任何类似会话的内容。那

我是WCF的新手。所以经常关注wcf代码和文章。在查看了许多代码之后,我 经常被困在非常基本的事情上,没有就下面的问题进行详细的讨论。 所以这里是我的几个基本问题……希望通过示例情况和示例代码进行详细讨论

问题A 只需简单地告诉我SessionMode.Required、SessionMode.Allowed的含义是什么 SessionMode.Required和SessionMode.Allowed之间有什么区别

默认会话模式是什么

我见过有人开发wcf服务,但并没有指定任何类似会话的内容。那么告诉我什么时候应该打开SessionMode.Required还是SessionMode.Allowed

问题B 我只需要深入了解什么时候应该选择InstanceContextMode或Single 还是珀索尔还是珀塞塞森

告诉我当我打开单曲时会发生什么,或者PerCall或PerSession会发生什么?单人房、单人房和单人房有什么区别

什么是默认InstanceContextMode

问题C 问题D 问题E 关于经营合同

[OperationContract(IsInitiating=false, IsOneWay=false)]
bool Add_Contact(int sessionkey, string Newusrname);
IsInitiating=假或真的含义是什么。我什么时候应该设置为真还是假? IsOneWay=假或真的含义是什么。我什么时候应该设置为真还是假

我相信我的问题很基本,每次都有很多学者关注这个论坛。 我希望我能在很多情况下得到详细的最佳答案,比如当一个人应该选择哪个选项而不是其他选项时,只有很少的模拟情况的示例代码。
谢谢

问得好。但是,最好将这个问题分成5个独立的问题。
what is InstanceContextMode? 
many people use InstanceContextMode Single or PerCall or PerSession ?
what is ConcurrencyMode ??
actually what ConcurrencyMode  does.....what it determines??
there are few ConcurrencyMode available and those 
are Multiple,Reentrant and Single

which concurrent mode one should use in what kind of situation. 
what will be the best    choice
what is the meaning of UseSynchronizationContext=false 
when one should turn on UseSynchronizationContext=true 
or when one should go for UseSynchronizationContext=false ?
[OperationContract(IsInitiating=false, IsOneWay=false)]
bool Add_Contact(int sessionkey, string Newusrname);