Update reference documentation generation tools to get source highlighting [SPRNET-1045]
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<chapter id="wcf-quickstart">
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2002-2008 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<chapter xml:id="wcf-quickstart" xmlns="http://docbook.org/ns/docbook" version="5">
|
||||
<title>WCF QuickStart</title>
|
||||
|
||||
<section>
|
||||
@@ -26,7 +43,7 @@
|
||||
|
||||
<para>The service contract is shown below</para>
|
||||
|
||||
<programlisting> [ServiceContract(Namespace = "http://Spring.WcfQuickStart")]
|
||||
<programlisting language="csharp"> [ServiceContract(Namespace = "http://Spring.WcfQuickStart")]
|
||||
public interface ICalculator
|
||||
{
|
||||
[OperationContract]
|
||||
@@ -45,7 +62,7 @@
|
||||
that controls how long each method should sleep. An abbreviated listing of
|
||||
the implementation is shown below </para>
|
||||
|
||||
<programlisting> public class CalculatorService : ICalculator
|
||||
<programlisting language="csharp"> public class CalculatorService : ICalculator
|
||||
{
|
||||
private int sleepInSeconds;
|
||||
|
||||
@@ -76,10 +93,10 @@
|
||||
configuration of your service is done as you would typically do with
|
||||
Spring, including applying of any AOP advice. The class is hosted inside
|
||||
the console application through the use of Spring's
|
||||
<classname>ServiceHostFactoryObject</classname> exporter. The
|
||||
<literal>ServiceHostFactoryObject</literal> exporter. The
|
||||
configuration for the server console application is shown below. </para>
|
||||
|
||||
<programlisting> <objects xmlns="http://www.springframework.net"
|
||||
<programlisting language="myxml"> <objects xmlns="http://www.springframework.net"
|
||||
xmlns:aop="http://www.springframework.net/aop">
|
||||
|
||||
<!-- Service definition -->
|
||||
@@ -118,9 +135,9 @@
|
||||
|
||||
<para>This approach uses Spring specific implementation of the WCF
|
||||
interfaces
|
||||
<classname>System.ServiceModel.Dispatcher.IInstanceProvider</classname>
|
||||
<literal>System.ServiceModel.Dispatcher.IInstanceProvider</literal>
|
||||
and
|
||||
<classname>System.ServiceModel.Description.IServiceBehavior</classname>
|
||||
<literal>System.ServiceModel.Description.IServiceBehavior</literal>
|
||||
are used to integrate Spring directly into the instancing of WCF
|
||||
services. For more information on this approach refer to this <link
|
||||
linkend="wcf-di-extension-points">section</link> of the reference
|
||||
@@ -132,7 +149,7 @@
|
||||
Spring.ServiceModel.Activation.ServiceHostFactory. The .svc file is
|
||||
shown below.</para>
|
||||
|
||||
<programlisting><%@ ServiceHost Language="C#" Debug="true" Service="Spring.WcfQuickStart.CalculatorService"
|
||||
<programlisting language="myxml"><%@ ServiceHost Language="C#" Debug="true" Service="Spring.WcfQuickStart.CalculatorService"
|
||||
Factory="Spring.ServiceModel.Activation.ServiceHostFactory" %>
|
||||
</programlisting>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user