Skip to content

Commit 40f9132

Browse files
merge bug26131 into bug26133
2 parents de36d1f + 5391321 commit 40f9132

File tree

6 files changed

+0
-336
lines changed

6 files changed

+0
-336
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,9 @@
5454
<Compile Include="..\RabbitMQ.Client\src\client\api\IContentHeader.cs">
5555
<Link>src\client\api\IContentHeader.cs</Link>
5656
</Compile>
57-
<Compile Include="..\RabbitMQ.Client\src\client\api\IFileProperties.cs">
58-
<Link>src\client\api\IFileProperties.cs</Link>
59-
</Compile>
6057
<Compile Include="..\RabbitMQ.Client\src\client\api\IModel.cs">
6158
<Link>src\client\api\IModel.cs</Link>
6259
</Compile>
63-
<Compile Include="..\RabbitMQ.Client\src\client\api\IStreamProperties.cs">
64-
<Link>src\client\api\IStreamProperties.cs</Link>
65-
</Compile>
6660
<Compile Include="..\RabbitMQ.Client\src\client\api\PublicationAddress.cs">
6761
<Link>src\client\api\PublicationAddress.cs</Link>
6862
</Compile>

projects/client/RabbitMQ.Client/src/client/api/IFileProperties.cs

Lines changed: 0 additions & 146 deletions
This file was deleted.

projects/client/RabbitMQ.Client/src/client/api/IModel.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,20 +144,6 @@ public interface IModel: IDisposable
144144
[AmqpContentHeaderFactory("basic")]
145145
IBasicProperties CreateBasicProperties();
146146

147-
///<summary>Construct a completely empty content header for
148-
///use with the File content class.
149-
/// (unsupported in AMQP 0-9-1)</summary>
150-
[AmqpContentHeaderFactory("file")]
151-
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_9_1")]
152-
IFileProperties CreateFileProperties();
153-
154-
///<summary>Construct a completely empty content header for
155-
///use with the Stream content class.
156-
/// (unsupported in AMQP 0-9-1)</summary>
157-
[AmqpContentHeaderFactory("stream")]
158-
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_9_1")]
159-
IStreamProperties CreateStreamProperties();
160-
161147
///<summary>(Spec method) Declare an exchange.</summary>
162148
///<remarks>
163149
///The exchange is declared non-passive and non-internal.

projects/client/RabbitMQ.Client/src/client/impl/FileProperties.cs

Lines changed: 0 additions & 91 deletions
This file was deleted.

projects/client/RabbitMQ.Client/src/client/impl/ModelBase.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,6 @@ public void FinishClose()
776776
///////////////////////////////////////////////////////////////////////////
777777

778778
public abstract IBasicProperties CreateBasicProperties();
779-
public abstract IFileProperties CreateFileProperties();
780-
public abstract IStreamProperties CreateStreamProperties();
781779

782780
public void ExchangeDeclare(string exchange, string type, bool durable, bool autoDelete, IDictionary<string, object> arguments)
783781
{

projects/client/Unit/src/unit/TestPropertiesClone.cs

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -224,81 +224,4 @@ private void TestStreamPropertiesNoneClone(StreamProperties sp)
224224
Assert.AreEqual(false, spClone.IsPriorityPresent());
225225
Assert.AreEqual(false, spClone.IsTimestampPresent());
226226
}
227-
228-
private void TestFilePropertiesClone(FileProperties fp)
229-
{
230-
// Set members in source object
231-
fp.ContentType = "foo_1";
232-
fp.ContentEncoding = "foo_2";
233-
fp.Headers = new Dictionary<string, object>();
234-
fp.Headers.Add("foo_3", "foo_4");
235-
fp.Headers.Add("foo_5", "foo_6");
236-
fp.Priority = 12;
237-
fp.ReplyTo = "foo_7";
238-
fp.MessageId = "foo_8";
239-
fp.Filename = "foo_9";
240-
fp.Timestamp = new AmqpTimestamp(123);
241-
fp.ClusterId = "foo_10";
242-
243-
// Clone
244-
FileProperties fpClone = fp.Clone() as FileProperties;
245-
246-
// Change values in source object
247-
fp.ContentType = "foo_11";
248-
fp.ContentEncoding = "foo_12";
249-
fp.Headers = new Dictionary<string, object>();
250-
fp.Headers.Add("foo_13", "foo_14");
251-
fp.Headers.Add("foo_15", "foo_16");
252-
fp.Priority = 34;
253-
fp.ReplyTo = "foo_17";
254-
fp.MessageId = "foo_18";
255-
fp.Filename = "foo_19";
256-
fp.Timestamp = new AmqpTimestamp(234);
257-
fp.ClusterId = "foo_20";
258-
259-
// Make sure values have not changed in clone
260-
Assert.AreEqual("foo_1", fpClone.ContentType);
261-
Assert.AreEqual("foo_2", fpClone.ContentEncoding);
262-
Assert.AreEqual(2, fpClone.Headers.Count);
263-
Assert.AreEqual(true, fpClone.Headers.ContainsKey("foo_3"));
264-
Assert.AreEqual("foo_4", fpClone.Headers["foo_3"]);
265-
Assert.AreEqual(true, fpClone.Headers.ContainsKey("foo_5"));
266-
Assert.AreEqual("foo_6", fpClone.Headers["foo_5"]);
267-
Assert.AreEqual(12, fpClone.Priority);
268-
Assert.AreEqual("foo_7", fpClone.ReplyTo);
269-
Assert.AreEqual("foo_8", fpClone.MessageId);
270-
Assert.AreEqual("foo_9", fpClone.Filename);
271-
Assert.AreEqual(new AmqpTimestamp(123), fpClone.Timestamp);
272-
Assert.AreEqual("foo_10", fpClone.ClusterId);
273-
}
274-
275-
private void TestFilePropertiesNoneClone(FileProperties fp)
276-
{
277-
// Do not set any members and clone
278-
FileProperties fpClone = fp.Clone() as FileProperties;
279-
280-
// Set values in source object
281-
fp.ContentType = "foo_11";
282-
fp.ContentEncoding = "foo_12";
283-
fp.Headers = new Dictionary<string, object>();
284-
fp.Headers.Add("foo_13", "foo_14");
285-
fp.Headers.Add("foo_15", "foo_16");
286-
fp.Priority = 34;
287-
fp.ReplyTo = "foo_17";
288-
fp.MessageId = "foo_18";
289-
fp.Filename = "foo_19";
290-
fp.Timestamp = new AmqpTimestamp(234);
291-
fp.ClusterId = "foo_20";
292-
293-
// Check that no member is present in clone
294-
Assert.AreEqual(false, fpClone.IsContentTypePresent());
295-
Assert.AreEqual(false, fpClone.IsContentEncodingPresent());
296-
Assert.AreEqual(false, fpClone.IsHeadersPresent());
297-
Assert.AreEqual(false, fpClone.IsPriorityPresent());
298-
Assert.AreEqual(false, fpClone.IsReplyToPresent());
299-
Assert.AreEqual(false, fpClone.IsMessageIdPresent());
300-
Assert.AreEqual(false, fpClone.IsFilenamePresent());
301-
Assert.AreEqual(false, fpClone.IsTimestampPresent());
302-
Assert.AreEqual(false, fpClone.IsClusterIdPresent());
303-
}
304227
}

0 commit comments

Comments
 (0)