Presentation is loading. Please wait.

Presentation is loading. Please wait.

MID314. demo Endpoint Service WSDL C C B B A C C B B A A Address Where? C C Contract What? Contract What? B B Binding How? Binding How? Client.

Similar presentations


Presentation on theme: "MID314. demo Endpoint Service WSDL C C B B A C C B B A A Address Where? C C Contract What? Contract What? B B Binding How? Binding How? Client."— Presentation transcript:

1 MID314

2

3

4

5 demo

6 Endpoint Service WSDL C C B B A C C B B A A Address Where? C C Contract What? Contract What? B B Binding How? Binding How? Client A B B C C Be Behavior Local Only Details

7

8 service.svc web.config service.cs [ServiceContract] public interface ICalculator { … } public class CalculatorService : ICalculator { … } [ServiceContract] public interface ICalculator { … } public class CalculatorService : ICalculator { … } <endpoint address="" binding="basicHttpBinding" contract="Microsoft.ServiceModel.Samples.ICalculator" /> <endpoint address="" binding="basicHttpBinding" contract="Microsoft.ServiceModel.Samples.ICalculator" />

9 service.svc service.cs [ServiceContract] public interface ICalculator { … } public class CalculatorService : ICalculator { … } [ServiceContract] public interface ICalculator { … } public class CalculatorService : ICalculator { … } web.config is not needed!

10

11 A:http://localhost/Services/IService1 B:BasicHttpBinding, C:IService1 A:net.tcp://localhost/Services/IService1 B:NetTcpBinding, C:IService1 A:http://localhost/Services/IService2 B:BasicHttpBinding C:IService2 A:net.tcp//localhost/Services/IService2 B:NetTcpBinding C:IService2 A:http://localhost/Services/IService1 B:BasicHttpBinding, C:IService1 A:net.tcp://localhost/Services/IService1 B:NetTcpBinding, C:IService1 A:http://localhost/Services/IService2 B:BasicHttpBinding C:IService2 A:net.tcp//localhost/Services/IService2 B:NetTcpBinding C:IService2 ? ? Contracts(Base Addresses Protocol Mappings) EndpointsX → = public class Service1 : IService1, IService2 { …… } public class Service1 : IService1, IService2 { …… } http://localhost/Services net.tcp://localhost/Services http://localhost/Services net.tcp://localhost/Services http → BasicHttpBinding net.tcp → NetTcpBinding net.pipe → NetNamedPipeBinding net.msmq → NetMsmqBinding http → BasicHttpBinding net.tcp → NetTcpBinding net.pipe → NetNamedPipeBinding net.msmq → NetMsmqBinding

12

13 …… ……

14 Throttlings.NET 3.5.NET 4 MaxConcurrentSessions10100 * ProcessorCount MaxConcurrentCalls1616 * ProcessorCount MaxConcurrentInstances26MaxConcurrentSessions + MaxConcurrentCalls

15 demo

16

17

18

19 AppFabric Runtime Services and Components Management APIs (PowerShell command-lets) IIS Manager IIS/WAS WF and WCF IIS Manager Modules Visual Studio System Center Server Manager

20

21 demo

22

23

24 .svclog

25

26 demo

27

28

29

30

31

32 PropertyOnOld ValueNew Value MaxArrayLengthReaderQuotas (buffered+text only)16384 elementsInt32.MaxValue MaxBytesPerReadReaderQuotas (buffered+text only)4096 bytesInt32.MaxValue MaxDepthReaderQuotas (buffered+text only)32 nodes deep128 MaxNameTableCharCountReaderQuotas (buffered+text only)16384 charsInt32.MaxValue MaxStringContentLengthReaderQuotas (buffered+text only)8192 charsInt32.MaxValue ChannelInitializationTimeoutNetTcpBinding5 sec30 secs ListenBacklogNetTcpBinding SMSvcHost.exe.config 1012 * # of procs MaxPendingAcceptsTcpTransportBindingelement/ NamedPipeTransportBindingElement, SMSvcHost.exe.config 1, 22 * # of procs, 4 * # of procs MaxPendingConnectionsTcpTransportBindingelement/ NamedPipeTransportBindingElement 1012 * # of procs ReceiveTimeoutSMSvcHost.exe.config10 seconds30 seconds

33

34

35

36 www.microsoft.com/teched Sessions On-Demand & CommunityMicrosoft Certification & Training Resources Resources for IT ProfessionalsResources for Developers www.microsoft.com/learning http://microsoft.com/technet http://microsoft.com/msdn http://northamerica.msteched.com Connect. Share. Discuss.

37

38 Scan the Tag to evaluate this session now on myTechEd Mobile

39

40


Download ppt "MID314. demo Endpoint Service WSDL C C B B A C C B B A A Address Where? C C Contract What? Contract What? B B Binding How? Binding How? Client."

Similar presentations


Ads by Google