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 A B B C C Be Behavior Local Only Details
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" />
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!
A: B:BasicHttpBinding, C:IService1 A:net.tcp://localhost/Services/IService1 B:NetTcpBinding, C:IService1 A: B:BasicHttpBinding C:IService2 A:net.tcp//localhost/Services/IService2 B:NetTcpBinding C:IService2 A: B:BasicHttpBinding, C:IService1 A:net.tcp://localhost/Services/IService1 B:NetTcpBinding, C:IService1 A: 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 { …… } net.tcp://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
…… ……
Throttlings.NET 3.5.NET 4 MaxConcurrentSessions10100 * ProcessorCount MaxConcurrentCalls1616 * ProcessorCount MaxConcurrentInstances26MaxConcurrentSessions + MaxConcurrentCalls
demo
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
demo
.svclog
demo
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
Sessions On-Demand & CommunityMicrosoft Certification & Training Resources Resources for IT ProfessionalsResources for Developers Connect. Share. Discuss.
Scan the Tag to evaluate this session now on myTechEd Mobile