Skip to content

Commit f6737a3

Browse files
committed
Move util classes.
1 parent 49710ec commit f6737a3

12 files changed

+109
-17
lines changed

projects/RabbitMQ.Client/util/TypeExtensions.cs renamed to projects/RabbitMQ.Client/TypeExtensions.cs

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,39 @@
1-
using System;
1+
// This source code is dual-licensed under the Apache License, version
2+
// 2.0, and the Mozilla Public License, version 2.0.
3+
//
4+
// The APL v2.0:
5+
//
6+
//---------------------------------------------------------------------------
7+
// Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
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+
// https://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 v2.0:
23+
//
24+
//---------------------------------------------------------------------------
25+
// This Source Code Form is subject to the terms of the Mozilla Public
26+
// License, v. 2.0. If a copy of the MPL was not distributed with this
27+
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
28+
//
29+
// Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
30+
//---------------------------------------------------------------------------
31+
32+
using System;
233
using System.Runtime.CompilerServices;
334
using System.Runtime.InteropServices;
435

5-
namespace RabbitMQ
36+
namespace RabbitMQ.Client
637
{
738
internal static class TypeExtensions
839
{

projects/RabbitMQ.Client/client/impl/CommandAssembler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
using RabbitMQ.Client.Exceptions;
3535
using RabbitMQ.Client.Framing.Impl;
3636
using RabbitMQ.Client.Logging;
37-
using RabbitMQ.Util;
37+
using RabbitMQ.Client.Util;
3838

3939
namespace RabbitMQ.Client.Impl
4040
{

projects/RabbitMQ.Client/client/impl/Frame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
using RabbitMQ.Client.Exceptions;
4040
using RabbitMQ.Client.Framing.Impl;
4141
using RabbitMQ.Client.Logging;
42-
using RabbitMQ.Util;
42+
using RabbitMQ.Client.Util;
4343

4444
namespace RabbitMQ.Client.Impl
4545
{

projects/RabbitMQ.Client/client/impl/SessionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
using RabbitMQ.Client.Events;
3535
using RabbitMQ.Client.Exceptions;
3636
using RabbitMQ.Client.Framing.Impl;
37-
using RabbitMQ.Util;
37+
using RabbitMQ.Client.Util;
3838

3939
namespace RabbitMQ.Client.Impl
4040
{

projects/RabbitMQ.Client/client/impl/WireFormatting.Read.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
using System.Collections;
3434
using System.Collections.Generic;
3535
using System.Runtime.CompilerServices;
36-
3736
using RabbitMQ.Client.Exceptions;
38-
using RabbitMQ.Util;
37+
using RabbitMQ.Client.Util;
3938

4039
namespace RabbitMQ.Client.Impl
4140
{

projects/RabbitMQ.Client/client/impl/WireFormatting.Write.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
using System.Runtime.CompilerServices;
3636

3737
using RabbitMQ.Client.Exceptions;
38-
using RabbitMQ.Util;
38+
using RabbitMQ.Client.Util;
3939

4040
namespace RabbitMQ.Client.Impl
4141
{

projects/RabbitMQ.Client/util/IntAllocator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
using System;
3333
using System.Diagnostics;
3434

35-
namespace RabbitMQ.Util
35+
namespace RabbitMQ.Client.Util
3636
{
3737
/**
3838
* A class for allocating integer IDs in a given range.

projects/RabbitMQ.Client/util/NetworkOrderDeserializer.cs

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,40 @@
1-
using System;
1+
// This source code is dual-licensed under the Apache License, version
2+
// 2.0, and the Mozilla Public License, version 2.0.
3+
//
4+
// The APL v2.0:
5+
//
6+
//---------------------------------------------------------------------------
7+
// Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
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+
// https://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 v2.0:
23+
//
24+
//---------------------------------------------------------------------------
25+
// This Source Code Form is subject to the terms of the Mozilla Public
26+
// License, v. 2.0. If a copy of the MPL was not distributed with this
27+
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
28+
//
29+
// Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
30+
//---------------------------------------------------------------------------
31+
32+
using System;
233
using System.Buffers;
334
using System.Buffers.Binary;
435
using System.Runtime.CompilerServices;
536

6-
namespace RabbitMQ.Util
37+
namespace RabbitMQ.Client.Util
738
{
839
internal static class NetworkOrderDeserializer
940
{

projects/RabbitMQ.Client/util/NetworkOrderSerializer.cs

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,39 @@
1-
using System;
1+
// This source code is dual-licensed under the Apache License, version
2+
// 2.0, and the Mozilla Public License, version 2.0.
3+
//
4+
// The APL v2.0:
5+
//
6+
//---------------------------------------------------------------------------
7+
// Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
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+
// https://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 v2.0:
23+
//
24+
//---------------------------------------------------------------------------
25+
// This Source Code Form is subject to the terms of the Mozilla Public
26+
// License, v. 2.0. If a copy of the MPL was not distributed with this
27+
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
28+
//
29+
// Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
30+
//---------------------------------------------------------------------------
31+
32+
using System;
233
using System.Buffers.Binary;
334
using System.Runtime.CompilerServices;
435

5-
namespace RabbitMQ.Util
36+
namespace RabbitMQ.Client.Util
637
{
738
internal static class NetworkOrderSerializer
839
{

projects/Test/Unit/TestIntAllocator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
using System;
3333
using System.Collections.Generic;
34-
using RabbitMQ.Util;
34+
using RabbitMQ.Client.Util;
3535
using Xunit;
3636

3737
namespace Test.Unit

0 commit comments

Comments
 (0)