Skip to content

Commit 95d3f1c

Browse files
author
Emile Joubert
committed
Tidy
1 parent 18a8dae commit 95d3f1c

File tree

3 files changed

+201
-162
lines changed

3 files changed

+201
-162
lines changed

.hgignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ syntax: regexp
55
rabbit\.snk$
66
^rabbit\-mock\.snk$
77

8-
^#
98
^scratch$
109
^release/
1110
^build$

projects/client/RabbitMQ.Client/RabbitMQ.Client.csproj

Lines changed: 155 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -1,156 +1,156 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<!-- Warning! This file contains important customizations. Using Visual Studio to edit project's properties might break things. -->
4-
5-
<!-- Props file -->
6-
<PropertyGroup>
7-
<LocalPropsFile>$(MSBuildProjectDirectory)\..\..\..\Local.props</LocalPropsFile>
8-
</PropertyGroup>
9-
<Import Project="$(LocalPropsFile)" />
10-
<!-- MSBuild Community Tasks -->
11-
<PropertyGroup>
12-
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\..\..\..\lib\MSBuild.Community.Tasks\</MSBuildCommunityTasksPath>
13-
</PropertyGroup>
14-
<Import Project="$(MSBuildCommunityTasksPath)MSBuild.Community.Tasks.Targets" />
15-
16-
<!-- Gensrc dir -->
17-
<PropertyGroup>
18-
<GensrcDir>..\..\..\gensrc\$(MSBuildProjectName)\</GensrcDir>
19-
</PropertyGroup>
20-
<Target Name="CreateGensrcDir">
21-
<MakeDir Directories="$(GensrcDir)" />
22-
</Target>
23-
24-
<!-- API autogeneration -->
25-
<PropertyGroup>
26-
<SpecsDir>..\..\..\docs\specs\</SpecsDir>
27-
<AmqpSpec0_9_1BaseName>amqp0-9-1.stripped.xml</AmqpSpec0_9_1BaseName>
28-
<AmqpSpec0_9BaseName>amqp0-9.stripped.xml</AmqpSpec0_9BaseName>
29-
<AmqpSpec0_8qpidBaseName>qpid-amqp.0-8.stripped.xml</AmqpSpec0_8qpidBaseName>
30-
<AmqpSpec0_8BaseName>amqp0-8.stripped.xml</AmqpSpec0_8BaseName>
31-
<AmqpSpec0_9_1>$(SpecsDir)$(AmqpSpec0_9_1BaseName)</AmqpSpec0_9_1>
32-
<AmqpSpec0_9>$(SpecsDir)$(AmqpSpec0_9BaseName)</AmqpSpec0_9>
33-
<AmqpSpec0_8qpid>$(SpecsDir)$(AmqpSpec0_8qpidBaseName)</AmqpSpec0_8qpid>
34-
<AmqpSpec0_8>$(SpecsDir)$(AmqpSpec0_8BaseName)</AmqpSpec0_8>
35-
<AutogeneratedApi0_9_1BaseName>autogenerated-api-0-9-1.cs</AutogeneratedApi0_9_1BaseName>
36-
<AutogeneratedApi0_9BaseName>autogenerated-api-0-9.cs</AutogeneratedApi0_9BaseName>
37-
<AutogeneratedApi0_8qpidBaseName>autogenerated-api-qpid-0-8.cs</AutogeneratedApi0_8qpidBaseName>
38-
<AutogeneratedApi0_8BaseName>autogenerated-api-0-8.cs</AutogeneratedApi0_8BaseName>
39-
<AutogeneratedApi0_9>$(GensrcDir)$(AutogeneratedApi0_9BaseName)</AutogeneratedApi0_9>
40-
<AutogeneratedApi0_9_1>$(GensrcDir)$(AutogeneratedApi0_9_1BaseName)</AutogeneratedApi0_9_1>
41-
<AutogeneratedApi0_8qpid>$(GensrcDir)$(AutogeneratedApi0_8qpidBaseName)</AutogeneratedApi0_8qpid>
42-
<AutogeneratedApi0_8>$(GensrcDir)$(AutogeneratedApi0_8BaseName)</AutogeneratedApi0_8>
43-
<ApiGenExe>..\Apigen\build\bin\rabbitmq-dotnet-apigen.exe</ApiGenExe>
44-
</PropertyGroup>
45-
<ItemGroup>
46-
<AmqpSpecs Include="$(AmqpSpec0_9_1)"><Link>specs\$(AmqpSpec0_9_1BaseName)</Link></AmqpSpecs>
47-
<AmqpSpecs Include="$(AmqpSpec0_9)"><Link>specs\$(AmqpSpec0_9BaseName)</Link></AmqpSpecs>
48-
<AmqpSpecs Include="$(AmqpSpec0_8qpid)"><Link>specs\$(AmqpSpec0_8qpidBaseName)</Link></AmqpSpecs>
49-
<AmqpSpecs Include="$(AmqpSpec0_8)"><Link>specs\$(AmqpSpec0_8BaseName)</Link></AmqpSpecs>
50-
<Compile Include="$(AutogeneratedApi0_9_1)"><Link>src\gensrc\$(AutogeneratedApi0_9_1BaseName)</Link></Compile>
51-
<Compile Include="$(AutogeneratedApi0_9)"><Link>src\gensrc\$(AutogeneratedApi0_9BaseName)</Link></Compile>
52-
<Compile Include="$(AutogeneratedApi0_8qpid)"><Link>src\gensrc\$(AutogeneratedApi0_8qpidBaseName)</Link></Compile>
53-
<Compile Include="$(AutogeneratedApi0_8)"><Link>src\gensrc\$(AutogeneratedApi0_8BaseName)</Link></Compile>
54-
<AutogeneratedApi Include="$(AutogeneratedApi0_9_1)"><Visible>false</Visible></AutogeneratedApi>
55-
<AutogeneratedApi Include="$(AutogeneratedApi0_9)"><Visible>false</Visible></AutogeneratedApi>
56-
<AutogeneratedApi Include="$(AutogeneratedApi0_8qpid)"><Visible>false</Visible></AutogeneratedApi>
57-
<AutogeneratedApi Include="$(AutogeneratedApi0_8)"><Visible>false</Visible></AutogeneratedApi>
58-
</ItemGroup>
59-
<Target Name="GenerateApi" DependsOnTargets="CreateGensrcDir" Inputs="@(AmqpSpecs);$(ApiGenExe)" Outputs="@(AutogeneratedApi)">
60-
<Exec Command='$(PropLaunchExe)$(ApiGenExe) /apiName:AMQP_0_9_1 /n:v0_9_1 $(AmqpSpec0_9_1) $(AutogeneratedApi0_9_1)' WorkingDirectory="$(ProjectDir)" />
61-
<Exec Command='$(PropLaunchExe)$(ApiGenExe) /apiName:AMQP_0_9 /n:v0_9 $(AmqpSpec0_9) $(AutogeneratedApi0_9)' WorkingDirectory="$(ProjectDir)" />
62-
<Exec Command='$(PropLaunchExe)$(ApiGenExe) /apiName:AMQP_0_8_QPID /n:v0_8qpid $(AmqpSpec0_8qpid) $(AutogeneratedApi0_8qpid)' WorkingDirectory="$(ProjectDir)" />
63-
<Exec Command='$(PropLaunchExe)$(ApiGenExe) /apiName:AMQP_0_8 /n:v0_8 $(AmqpSpec0_8) $(AutogeneratedApi0_8)' WorkingDirectory="$(ProjectDir)" />
64-
</Target>
65-
<Target Name="CleanGenerateApi">
66-
<Delete Files="@(AutogeneratedApi)" />
67-
</Target>
68-
69-
<!-- Detokenize -->
70-
<PropertyGroup>
71-
<AssemblyInfoBaseName>AssemblyInfo.cs</AssemblyInfoBaseName>
72-
<AssemblyInfoTok>src\tokenized\$(AssemblyInfoBaseName).in</AssemblyInfoTok>
73-
<AssemblyInfoDetok>$(GensrcDir)$(AssemblyInfoBaseName)</AssemblyInfoDetok>
74-
</PropertyGroup>
75-
<ItemGroup>
76-
<Tokenized Include="$(AssemblyInfoTok)" />
77-
<Detokenized Include="$(AssemblyInfoDetok)"><Link>properties\$(AssemblyInfoBaseName)</Link></Detokenized>
78-
<Compile Include="$(AssemblyInfoDetok)"><Visible>false</Visible></Compile>
79-
<Tokens Include="PropAssemblyVersion"><ReplacementValue>$(PropAssemblyVersion)</ReplacementValue><Visible>false</Visible></Tokens>
80-
</ItemGroup>
81-
<Target Name="Detokenize" DependsOnTargets="CreateGensrcDir" Inputs="@(Tokenized); $(LocalPropsFile)" Outputs="@(Detokenized)">
82-
<Delete Files="@(Detokenized)" />
83-
<TemplateFile Template="$(AssemblyInfoTok)" OutputFilename="detok.out" Tokens="@(Tokens)" />
84-
<Move SourceFiles="src\tokenized\detok.out" DestinationFiles="$(AssemblyInfoDetok)" />
85-
</Target>
86-
<Target Name="CleanDetokenize">
87-
<Delete Files="@(Detokenized)" />
88-
</Target>
89-
90-
<!-- Visual Studio generated -->
91-
<PropertyGroup>
92-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
93-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
94-
<ProductVersion>9.0.21022</ProductVersion>
95-
<SchemaVersion>2.0</SchemaVersion>
96-
<ProjectGuid>{71713FDD-D5EC-40B2-A924-76F80AD57E12}</ProjectGuid>
97-
<OutputType>Library</OutputType>
98-
<AppDesignerFolder>properties</AppDesignerFolder>
99-
<RootNamespace>RabbitMQ.Client</RootNamespace>
100-
<AssemblyName>RabbitMQ.Client</AssemblyName>
101-
<TargetFrameworkVersion>$(PropTargetFramework)</TargetFrameworkVersion>
102-
<FileAlignment>512</FileAlignment>
103-
</PropertyGroup>
104-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
105-
<DebugSymbols>true</DebugSymbols>
106-
<DebugType>full</DebugType>
107-
<Optimize>false</Optimize>
108-
<OutputPath>build\bin\</OutputPath>
109-
<DefineConstants>DEBUG;TRACE</DefineConstants>
110-
<ErrorReport>none</ErrorReport>
111-
<WarningLevel>4</WarningLevel>
112-
<DocumentationFile>build\bin\RabbitMQ.Client.xml</DocumentationFile>
113-
<NoWarn>1591</NoWarn>
114-
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
115-
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
116-
<RegisterForComInterop>false</RegisterForComInterop>
117-
</PropertyGroup>
118-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
119-
<DebugType>pdbonly</DebugType>
120-
<Optimize>true</Optimize>
121-
<OutputPath>build\bin\</OutputPath>
122-
<DefineConstants>TRACE</DefineConstants>
123-
<ErrorReport>none</ErrorReport>
124-
<WarningLevel>4</WarningLevel>
125-
<DocumentationFile>build\bin\RabbitMQ.Client.xml</DocumentationFile>
126-
<NoWarn>1591</NoWarn>
127-
<DebugSymbols>true</DebugSymbols>
128-
<RegisterForComInterop>false</RegisterForComInterop>
129-
<SignAssembly Condition="'$(PropKeyfile)' != ''">true</SignAssembly>
130-
<AssemblyOriginatorKeyFile>$(PropKeyfile)</AssemblyOriginatorKeyFile>
131-
</PropertyGroup>
132-
<ItemGroup>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<!-- Warning! This file contains important customizations. Using Visual Studio to edit project's properties might break things. -->
4+
5+
<!-- Props file -->
6+
<PropertyGroup>
7+
<LocalPropsFile>$(MSBuildProjectDirectory)\..\..\..\Local.props</LocalPropsFile>
8+
</PropertyGroup>
9+
<Import Project="$(LocalPropsFile)" />
10+
<!-- MSBuild Community Tasks -->
11+
<PropertyGroup>
12+
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\..\..\..\lib\MSBuild.Community.Tasks\</MSBuildCommunityTasksPath>
13+
</PropertyGroup>
14+
<Import Project="$(MSBuildCommunityTasksPath)MSBuild.Community.Tasks.Targets" />
15+
16+
<!-- Gensrc dir -->
17+
<PropertyGroup>
18+
<GensrcDir>..\..\..\gensrc\$(MSBuildProjectName)\</GensrcDir>
19+
</PropertyGroup>
20+
<Target Name="CreateGensrcDir">
21+
<MakeDir Directories="$(GensrcDir)" />
22+
</Target>
23+
24+
<!-- API autogeneration -->
25+
<PropertyGroup>
26+
<SpecsDir>..\..\..\docs\specs\</SpecsDir>
27+
<AmqpSpec0_9_1BaseName>amqp0-9-1.stripped.xml</AmqpSpec0_9_1BaseName>
28+
<AmqpSpec0_9BaseName>amqp0-9.stripped.xml</AmqpSpec0_9BaseName>
29+
<AmqpSpec0_8qpidBaseName>qpid-amqp.0-8.stripped.xml</AmqpSpec0_8qpidBaseName>
30+
<AmqpSpec0_8BaseName>amqp0-8.stripped.xml</AmqpSpec0_8BaseName>
31+
<AmqpSpec0_9_1>$(SpecsDir)$(AmqpSpec0_9_1BaseName)</AmqpSpec0_9_1>
32+
<AmqpSpec0_9>$(SpecsDir)$(AmqpSpec0_9BaseName)</AmqpSpec0_9>
33+
<AmqpSpec0_8qpid>$(SpecsDir)$(AmqpSpec0_8qpidBaseName)</AmqpSpec0_8qpid>
34+
<AmqpSpec0_8>$(SpecsDir)$(AmqpSpec0_8BaseName)</AmqpSpec0_8>
35+
<AutogeneratedApi0_9_1BaseName>autogenerated-api-0-9-1.cs</AutogeneratedApi0_9_1BaseName>
36+
<AutogeneratedApi0_9BaseName>autogenerated-api-0-9.cs</AutogeneratedApi0_9BaseName>
37+
<AutogeneratedApi0_8qpidBaseName>autogenerated-api-qpid-0-8.cs</AutogeneratedApi0_8qpidBaseName>
38+
<AutogeneratedApi0_8BaseName>autogenerated-api-0-8.cs</AutogeneratedApi0_8BaseName>
39+
<AutogeneratedApi0_9>$(GensrcDir)$(AutogeneratedApi0_9BaseName)</AutogeneratedApi0_9>
40+
<AutogeneratedApi0_9_1>$(GensrcDir)$(AutogeneratedApi0_9_1BaseName)</AutogeneratedApi0_9_1>
41+
<AutogeneratedApi0_8qpid>$(GensrcDir)$(AutogeneratedApi0_8qpidBaseName)</AutogeneratedApi0_8qpid>
42+
<AutogeneratedApi0_8>$(GensrcDir)$(AutogeneratedApi0_8BaseName)</AutogeneratedApi0_8>
43+
<ApiGenExe>..\Apigen\build\bin\rabbitmq-dotnet-apigen.exe</ApiGenExe>
44+
</PropertyGroup>
45+
<ItemGroup>
46+
<AmqpSpecs Include="$(AmqpSpec0_9_1)"><Link>specs\$(AmqpSpec0_9_1BaseName)</Link></AmqpSpecs>
47+
<AmqpSpecs Include="$(AmqpSpec0_9)"><Link>specs\$(AmqpSpec0_9BaseName)</Link></AmqpSpecs>
48+
<AmqpSpecs Include="$(AmqpSpec0_8qpid)"><Link>specs\$(AmqpSpec0_8qpidBaseName)</Link></AmqpSpecs>
49+
<AmqpSpecs Include="$(AmqpSpec0_8)"><Link>specs\$(AmqpSpec0_8BaseName)</Link></AmqpSpecs>
50+
<AutogeneratedApi Include="$(AutogeneratedApi0_9_1)"><Link>src\gensrc\$(AutogeneratedApi0_9_1BaseName)</Link></AutogeneratedApi>
51+
<AutogeneratedApi Include="$(AutogeneratedApi0_9)"><Link>src\gensrc\$(AutogeneratedApi0_9BaseName)</Link></AutogeneratedApi>
52+
<AutogeneratedApi Include="$(AutogeneratedApi0_8qpid)"><Link>src\gensrc\$(AutogeneratedApi0_8qpidBaseName)</Link></AutogeneratedApi>
53+
<AutogeneratedApi Include="$(AutogeneratedApi0_8)"><Link>src\gensrc\$(AutogeneratedApi0_8BaseName)</Link></AutogeneratedApi>
54+
<Compile Include="$(AutogeneratedApi0_9_1)"><Visible>false</Visible></Compile>
55+
<Compile Include="$(AutogeneratedApi0_9)"><Visible>false</Visible></Compile>
56+
<Compile Include="$(AutogeneratedApi0_8qpid)"><Visible>false</Visible></Compile>
57+
<Compile Include="$(AutogeneratedApi0_8)"><Visible>false</Visible></Compile>
58+
</ItemGroup>
59+
<Target Name="GenerateApi" DependsOnTargets="CreateGensrcDir" Inputs="@(AmqpSpecs);$(ApiGenExe)" Outputs="@(AutogeneratedApi)">
60+
<Exec Command='$(PropLaunchExe)$(ApiGenExe) /apiName:AMQP_0_9_1 /n:v0_9_1 $(AmqpSpec0_9_1) $(AutogeneratedApi0_9_1)' WorkingDirectory="$(ProjectDir)" />
61+
<Exec Command='$(PropLaunchExe)$(ApiGenExe) /apiName:AMQP_0_9 /n:v0_9 $(AmqpSpec0_9) $(AutogeneratedApi0_9)' WorkingDirectory="$(ProjectDir)" />
62+
<Exec Command='$(PropLaunchExe)$(ApiGenExe) /apiName:AMQP_0_8_QPID /n:v0_8qpid $(AmqpSpec0_8qpid) $(AutogeneratedApi0_8qpid)' WorkingDirectory="$(ProjectDir)" />
63+
<Exec Command='$(PropLaunchExe)$(ApiGenExe) /apiName:AMQP_0_8 /n:v0_8 $(AmqpSpec0_8) $(AutogeneratedApi0_8)' WorkingDirectory="$(ProjectDir)" />
64+
</Target>
65+
<Target Name="CleanGenerateApi">
66+
<Delete Files="@(AutogeneratedApi)" />
67+
</Target>
68+
69+
<!-- Detokenize -->
70+
<PropertyGroup>
71+
<AssemblyInfoBaseName>AssemblyInfo.cs</AssemblyInfoBaseName>
72+
<AssemblyInfoTok>src\tokenized\$(AssemblyInfoBaseName).in</AssemblyInfoTok>
73+
<AssemblyInfoDetok>$(GensrcDir)$(AssemblyInfoBaseName)</AssemblyInfoDetok>
74+
</PropertyGroup>
75+
<ItemGroup>
76+
<Tokenized Include="$(AssemblyInfoTok)" />
77+
<Detokenized Include="$(AssemblyInfoDetok)"><Link>properties\$(AssemblyInfoBaseName)</Link></Detokenized>
78+
<Compile Include="$(AssemblyInfoDetok)"><Visible>false</Visible></Compile>
79+
<Tokens Include="PropAssemblyVersion"><ReplacementValue>$(PropAssemblyVersion)</ReplacementValue><Visible>false</Visible></Tokens>
80+
</ItemGroup>
81+
<Target Name="Detokenize" DependsOnTargets="CreateGensrcDir" Inputs="@(Tokenized); $(LocalPropsFile)" Outputs="@(Detokenized)">
82+
<Delete Files="@(Detokenized)" />
83+
<TemplateFile Template="$(AssemblyInfoTok)" OutputFilename="detok.out" Tokens="@(Tokens)" />
84+
<Move SourceFiles="src\tokenized\detok.out" DestinationFiles="$(AssemblyInfoDetok)" />
85+
</Target>
86+
<Target Name="CleanDetokenize">
87+
<Delete Files="@(Detokenized)" />
88+
</Target>
89+
90+
<!-- Visual Studio generated -->
91+
<PropertyGroup>
92+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
93+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
94+
<ProductVersion>9.0.21022</ProductVersion>
95+
<SchemaVersion>2.0</SchemaVersion>
96+
<ProjectGuid>{71713FDD-D5EC-40B2-A924-76F80AD57E12}</ProjectGuid>
97+
<OutputType>Library</OutputType>
98+
<AppDesignerFolder>properties</AppDesignerFolder>
99+
<RootNamespace>RabbitMQ.Client</RootNamespace>
100+
<AssemblyName>RabbitMQ.Client</AssemblyName>
101+
<TargetFrameworkVersion>$(PropTargetFramework)</TargetFrameworkVersion>
102+
<FileAlignment>512</FileAlignment>
103+
</PropertyGroup>
104+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
105+
<DebugSymbols>true</DebugSymbols>
106+
<DebugType>full</DebugType>
107+
<Optimize>false</Optimize>
108+
<OutputPath>build\bin\</OutputPath>
109+
<DefineConstants>DEBUG;TRACE</DefineConstants>
110+
<ErrorReport>none</ErrorReport>
111+
<WarningLevel>4</WarningLevel>
112+
<DocumentationFile>build\bin\RabbitMQ.Client.xml</DocumentationFile>
113+
<NoWarn>1591</NoWarn>
114+
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
115+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
116+
<RegisterForComInterop>false</RegisterForComInterop>
117+
</PropertyGroup>
118+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
119+
<DebugType>pdbonly</DebugType>
120+
<Optimize>true</Optimize>
121+
<OutputPath>build\bin\</OutputPath>
122+
<DefineConstants>TRACE</DefineConstants>
123+
<ErrorReport>none</ErrorReport>
124+
<WarningLevel>4</WarningLevel>
125+
<DocumentationFile>build\bin\RabbitMQ.Client.xml</DocumentationFile>
126+
<NoWarn>1591</NoWarn>
127+
<DebugSymbols>true</DebugSymbols>
128+
<RegisterForComInterop>false</RegisterForComInterop>
129+
<SignAssembly Condition="'$(PropKeyfile)' != ''">true</SignAssembly>
130+
<AssemblyOriginatorKeyFile>$(PropKeyfile)</AssemblyOriginatorKeyFile>
131+
</PropertyGroup>
132+
<ItemGroup>
133133
<Compile Include="src\client\**\*.cs" />
134-
<Compile Include="src\util\**\*.cs" /> </ItemGroup>
135-
<ItemGroup>
136-
<Reference Include="System" />
137-
<Reference Include="System.Data" />
138-
<Reference Include="System.Xml" />
139-
<Reference Include="System.Configuration" />
140-
<Reference Include="System.ServiceModel" />
141-
</ItemGroup>
142-
143-
<!-- Mono compatibility workarounds -->
144-
<PropertyGroup Condition=" '$(PropUsingMono)' == 'true'">
145-
<_DisabledWarnings>$(NoWarn)</_DisabledWarnings>
146-
</PropertyGroup>
147-
148-
<!-- Microsoft CSharp targets -->
149-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
150-
151-
<!-- Custom BeforeBuild-->
152-
<Target Name="BeforeBuild" DependsOnTargets="GenerateApi; Detokenize" />
153-
154-
<!-- Custom BeforeClean -->
155-
<Target Name="BeforeClean" DependsOnTargets="CleanGenerateApi; CleanDetokenize" />
156-
</Project>
134+
<Compile Include="src\util\**\*.cs" /> </ItemGroup>
135+
<ItemGroup>
136+
<Reference Include="System" />
137+
<Reference Include="System.Data" />
138+
<Reference Include="System.Xml" />
139+
<Reference Include="System.Configuration" />
140+
<Reference Include="System.ServiceModel" />
141+
</ItemGroup>
142+
143+
<!-- Mono compatibility workarounds -->
144+
<PropertyGroup Condition=" '$(PropUsingMono)' == 'true'">
145+
<_DisabledWarnings>$(NoWarn)</_DisabledWarnings>
146+
</PropertyGroup>
147+
148+
<!-- Microsoft CSharp targets -->
149+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
150+
151+
<!-- Custom BeforeBuild-->
152+
<Target Name="BeforeBuild" DependsOnTargets="GenerateApi; Detokenize" />
153+
154+
<!-- Custom BeforeClean -->
155+
<Target Name="BeforeClean" DependsOnTargets="CleanGenerateApi; CleanDetokenize" />
156+
</Project>

projects/client/RabbitMQ.Client/src/util/SynchronizedList.cs

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,49 @@
1-
namespace RabbitMQ.Util
2-
{
3-
using System;
4-
using System.Collections;
5-
using System.Collections.Generic;
1+
// This source code is dual-licensed under the Apache License, version
2+
// 2.0, and the Mozilla Public License, version 1.1.
3+
//
4+
// The APL v2.0:
5+
//
6+
//---------------------------------------------------------------------------
7+
// Copyright (C) 2007-2013 GoPivotal, Inc.
8+
//
9+
// Licensed under the Apache License, Version 2.0 (the "License");
10+
// you may not use this file except in compliance with the License.
11+
// You may obtain a copy of the License at
12+
//
13+
// http://www.apache.org/licenses/LICENSE-2.0
14+
//
15+
// Unless required by applicable law or agreed to in writing, software
16+
// distributed under the License is distributed on an "AS IS" BASIS,
17+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
// See the License for the specific language governing permissions and
19+
// limitations under the License.
20+
//---------------------------------------------------------------------------
21+
//
22+
// The MPL v1.1:
23+
//
24+
//---------------------------------------------------------------------------
25+
// The contents of this file are subject to the Mozilla Public License
26+
// Version 1.1 (the "License"); you may not use this file except in
27+
// compliance with the License. You may obtain a copy of the License
28+
// at http://www.mozilla.org/MPL/
29+
//
30+
// Software distributed under the License is distributed on an "AS IS"
31+
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
32+
// the License for the specific language governing rights and
33+
// limitations under the License.
34+
//
35+
// The Original Code is RabbitMQ.
36+
//
37+
// The Initial Developer of the Original Code is GoPivotal, Inc.
38+
// Copyright (c) 2013-2013 GoPivotal, Inc. All rights reserved.
39+
//---------------------------------------------------------------------------
40+
41+
using System;
42+
using System.Collections;
43+
using System.Collections.Generic;
644

45+
namespace RabbitMQ.Util
46+
{
747
[Serializable]
848
internal class SynchronizedList<T> : IList<T>
949
{
@@ -107,4 +147,4 @@ public void RemoveAt(int index)
107147
this.list.RemoveAt(index);
108148
}
109149
}
110-
}
150+
}

0 commit comments

Comments
 (0)