added samples
[windows-sources.git] / sdk / samples / WCFSamples / TechnologySamples / Basic / Binding / Net / NamedPipe / CS / service / App.config
blobfa6e62dd356812f3b9e896938f346d7966c4ed42
1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration>
4 <system.serviceModel>
5 <services>
6 <service name="Microsoft.ServiceModel.Samples.CalculatorService"
7 behaviorConfiguration="CalculatorServiceBehavior">
8 <host>
9 <baseAddresses>
10 <add baseAddress="http://localhost:8000/ServiceModelSamples/service"/>
11 </baseAddresses>
12 </host>
13 <!-- this endpoint is exposed at the base address provided by host: net.pipe://localhost/ServiceModelSamples/service -->
14 <endpoint address="net.pipe://localhost/ServiceModelSamples/service"
15 binding="netNamedPipeBinding"
16 bindingConfiguration="Binding1"
17 contract="Microsoft.ServiceModel.Samples.ICalculator" />
18 <!-- the mex endpoint is exposed at http://localhost:8000/ServiceModelSamples/service/mex -->
19 <endpoint address="mex"
20 binding="mexHttpBinding"
21 contract="IMetadataExchange" />
22 </service>
23 </services>
25 <bindings>
26 <!--
27 Following is the expanded configuration section for a NetNamedPipeBinding.
28 Each property is configured with the default value.
29 -->
30 <netNamedPipeBinding>
31 <binding name="Binding1"
32 closeTimeout="00:01:00"
33 openTimeout="00:01:00"
34 receiveTimeout="00:10:00"
35 sendTimeout="00:01:00"
36 transactionFlow="false"
37 transferMode="Buffered"
38 transactionProtocol="OleTransactions"
39 hostNameComparisonMode="StrongWildcard"
40 maxBufferPoolSize="524288"
41 maxBufferSize="65536"
42 maxConnections="10"
43 maxReceivedMessageSize="65536">
44 <security mode="Transport">
45 <transport protectionLevel="EncryptAndSign" />
46 </security>
47 </binding>
48 </netNamedPipeBinding>
49 </bindings>
51 <!--For debugging purposes set the includeExceptionDetailInFaults attribute to true-->
52 <behaviors>
53 <serviceBehaviors>
54 <behavior name="CalculatorServiceBehavior">
55 <serviceMetadata httpGetEnabled="True"/>
56 <serviceDebug includeExceptionDetailInFaults="False" />
57 </behavior>
58 </serviceBehaviors>
59 </behaviors>
61 </system.serviceModel>
63 </configuration>