Download presentation
Presentation is loading. Please wait.
Published byMilton Elliott Modified over 8 years ago
1
MID314
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
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!
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
13
…… ……
14
Throttlings.NET 3.5.NET 4 MaxConcurrentSessions10100 * ProcessorCount MaxConcurrentCalls1616 * ProcessorCount MaxConcurrentInstances26MaxConcurrentSessions + MaxConcurrentCalls
15
demo
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
21
demo
24
.svclog
26
demo
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
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.
38
Scan the Tag to evaluate this session now on myTechEd Mobile
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.