Update reference documentation generation tools to get source highlighting [SPRNET-1045]

This commit is contained in:
bbaia
2008-10-05 17:25:10 +00:00
parent 26cb75d4e0
commit 5dfa039603
125 changed files with 4487 additions and 7338 deletions

View File

@@ -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> &lt;objects xmlns="http://www.springframework.net"
<programlisting language="myxml"> &lt;objects xmlns="http://www.springframework.net"
xmlns:aop="http://www.springframework.net/aop"&gt;
&lt;!-- Service definition --&gt;
@@ -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>&lt;%@ ServiceHost Language="C#" Debug="true" Service="Spring.WcfQuickStart.CalculatorService"
<programlisting language="myxml">&lt;%@ ServiceHost Language="C#" Debug="true" Service="Spring.WcfQuickStart.CalculatorService"
Factory="Spring.ServiceModel.Activation.ServiceHostFactory" %&gt;
</programlisting>
</section>