1

私はWCFで非常に新しいです。wcf のコードと記事をよく見てください。多くのコードを見た後、私はしばしば非常に基本的なことに固執し、以下の質問について詳細な議論をしませんでした. ここに私のいくつかの基本的な質問があります....そして、サンプルの状況とサンプルコードを使用した詳細な議論を探しています。

質問A

if we do not write anything like SessionMode=SessionMode.Required 
then what will be default nature of WCF service. there will be no session

a) SessionMode.Required
b) SessionMode.Allowed
c) SessionMode.NotAllowed

SessionMode.Required,SessionMode.Allowed の意味と、SessionMode.Required,SessionMode.Allowed の違いを簡単に教えてください。

デフォルトのセッションモードは何ですか?

私は人々がwcfサービスを開発しているのを見てきましたが、セッションのようなものは何も指定していません. だから、いつ SessionMode.Required または SessionMode.Allowed をオンにする必要があるか教えてください。

質問B

what is InstanceContextMode? 
many people use InstanceContextMode Single or PerCall or PerSession ?

InstanceContextMode Single または PerCall または PerSession を選択する必要がある場合は、深い洞察が必要です。

Single をオンにするとどうなるか、または PerCall または PerSession の場合はどうなるか簡単に教えてください。Single または PerCall または PerSession の違いは何ですか

デフォルトの InstanceContextMode とは何ですか?

質問C

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

質問 D

what is the meaning of UseSynchronizationContext=false 
when one should turn on UseSynchronizationContext=true 
or when one should go for UseSynchronizationContext=false ?

質問E

運営契約について

[OperationContract(IsInitiating=false, IsOneWay=false)]
bool Add_Contact(int sessionkey, string Newusrname);

IsInitiating=false または true の意味は何ですか。いつ true または false に設定する必要がありますか? IsOneWay=false または true の意味は何ですか。いつ true または false に設定する必要がありますか?

私の質問は非常に基本的であり、このフォーラムを監視するたびに多くの学者がいると思います. 状況をシミュレートするためのサンプルコードがほとんどないため、他のオプションよりもどのオプションを選択する必要があるかなど、多くの状況で詳細に最適な回答が得られることを願っています。ありがとう

4

0 に答える 0