Skip to content

Commit 4a789ab

Browse files
author
Vlad Ionescu
committed
fixing identation
1 parent 32f36ad commit 4a789ab

File tree

2 files changed

+83
-78
lines changed

2 files changed

+83
-78
lines changed

src/client/api/IStreamProperties.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,21 @@ public interface IStreamProperties : IContentHeader
106106
void ClearPriority();
107107

108108
///<summary> Clear the Timestamp property. </summary>
109-
void ClearTimestamp();
110-
111-
///<summary> Returns true iff the ContentType property is present. </summary>
112-
bool IsContentTypePresent();
113-
114-
///<summary> Returns true iff the ContentEncoding property is present. </summary>
115-
bool IsContentEncodingPresent();
116-
117-
///<summary> Returns true iff the Headers property is present. </summary>
118-
bool IsHeadersPresent();
119-
120-
///<summary> Returns true iff the Priority property is present. </summary>
121-
bool IsPriorityPresent();
122-
123-
///<summary> Returns true iff the Timestamp property is present. </summary>
109+
void ClearTimestamp();
110+
111+
///<summary> Returns true iff the ContentType property is present. </summary>
112+
bool IsContentTypePresent();
113+
114+
///<summary> Returns true iff the ContentEncoding property is present. </summary>
115+
bool IsContentEncodingPresent();
116+
117+
///<summary> Returns true iff the Headers property is present. </summary>
118+
bool IsHeadersPresent();
119+
120+
///<summary> Returns true iff the Priority property is present. </summary>
121+
bool IsPriorityPresent();
122+
123+
///<summary> Returns true iff the Timestamp property is present. </summary>
124124
bool IsTimestampPresent();
125125
}
126126
}

src/client/impl/BasicProperties.cs

Lines changed: 68 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -57,81 +57,86 @@
5757
using System;
5858
using System.Collections;
5959

60-
namespace RabbitMQ.Client.Impl {
61-
public abstract class BasicProperties: ContentHeaderBase, IBasicProperties {
62-
public abstract string ContentType { get; set; }
63-
public abstract string ContentEncoding { get; set; }
64-
public abstract IDictionary Headers { get; set; }
65-
public abstract byte DeliveryMode { get; set; }
66-
public abstract byte Priority { get; set; }
67-
public abstract string CorrelationId { get; set; }
68-
public abstract string ReplyTo { get; set; }
69-
public abstract string Expiration { get; set; }
70-
public abstract string MessageId { get; set; }
71-
public abstract AmqpTimestamp Timestamp { get; set; }
72-
public abstract string Type { get; set; }
73-
public abstract string UserId { get; set; }
74-
public abstract string AppId { get; set; }
75-
public abstract string ClusterId { get; set; }
60+
namespace RabbitMQ.Client.Impl
61+
{
62+
public abstract class BasicProperties: ContentHeaderBase, IBasicProperties
63+
{
64+
public abstract string ContentType { get; set; }
65+
public abstract string ContentEncoding { get; set; }
66+
public abstract IDictionary Headers { get; set; }
67+
public abstract byte DeliveryMode { get; set; }
68+
public abstract byte Priority { get; set; }
69+
public abstract string CorrelationId { get; set; }
70+
public abstract string ReplyTo { get; set; }
71+
public abstract string Expiration { get; set; }
72+
public abstract string MessageId { get; set; }
73+
public abstract AmqpTimestamp Timestamp { get; set; }
74+
public abstract string Type { get; set; }
75+
public abstract string UserId { get; set; }
76+
public abstract string AppId { get; set; }
77+
public abstract string ClusterId { get; set; }
7678

77-
public abstract void ClearContentType();
78-
public abstract void ClearContentEncoding();
79-
public abstract void ClearHeaders();
80-
public abstract void ClearDeliveryMode();
81-
public abstract void ClearPriority();
82-
public abstract void ClearCorrelationId();
83-
public abstract void ClearReplyTo();
84-
public abstract void ClearExpiration();
85-
public abstract void ClearMessageId();
86-
public abstract void ClearTimestamp();
87-
public abstract void ClearType();
88-
public abstract void ClearUserId();
89-
public abstract void ClearAppId();
90-
public abstract void ClearClusterId();
79+
public abstract void ClearContentType();
80+
public abstract void ClearContentEncoding();
81+
public abstract void ClearHeaders();
82+
public abstract void ClearDeliveryMode();
83+
public abstract void ClearPriority();
84+
public abstract void ClearCorrelationId();
85+
public abstract void ClearReplyTo();
86+
public abstract void ClearExpiration();
87+
public abstract void ClearMessageId();
88+
public abstract void ClearTimestamp();
89+
public abstract void ClearType();
90+
public abstract void ClearUserId();
91+
public abstract void ClearAppId();
92+
public abstract void ClearClusterId();
9193

92-
public abstract bool IsContentTypePresent();
93-
public abstract bool IsContentEncodingPresent();
94-
public abstract bool IsHeadersPresent();
95-
public abstract bool IsDeliveryModePresent();
96-
public abstract bool IsPriorityPresent();
97-
public abstract bool IsCorrelationIdPresent();
98-
public abstract bool IsReplyToPresent();
99-
public abstract bool IsExpirationPresent();
100-
public abstract bool IsMessageIdPresent();
101-
public abstract bool IsTimestampPresent();
102-
public abstract bool IsTypePresent();
103-
public abstract bool IsUserIdPresent();
104-
public abstract bool IsAppIdPresent();
105-
public abstract bool IsClusterIdPresent();
94+
public abstract bool IsContentTypePresent();
95+
public abstract bool IsContentEncodingPresent();
96+
public abstract bool IsHeadersPresent();
97+
public abstract bool IsDeliveryModePresent();
98+
public abstract bool IsPriorityPresent();
99+
public abstract bool IsCorrelationIdPresent();
100+
public abstract bool IsReplyToPresent();
101+
public abstract bool IsExpirationPresent();
102+
public abstract bool IsMessageIdPresent();
103+
public abstract bool IsTimestampPresent();
104+
public abstract bool IsTypePresent();
105+
public abstract bool IsUserIdPresent();
106+
public abstract bool IsAppIdPresent();
107+
public abstract bool IsClusterIdPresent();
106108

107-
public PublicationAddress ReplyToAddress {
108-
get {
109+
public PublicationAddress ReplyToAddress
110+
{
111+
get
112+
{
109113
return PublicationAddress.Parse(ReplyTo);
110114
}
111-
set {
115+
set
116+
{
112117
ReplyTo = value.ToString();
113118
}
114119
}
115120

116-
public void SetPersistent(bool persistent) {
117-
if (persistent) {
118-
DeliveryMode = 2;
119-
} else {
120-
DeliveryMode = 1;
121+
public void SetPersistent(bool persistent)
122+
{
123+
if (persistent)
124+
DeliveryMode = 2;
125+
else
126+
DeliveryMode = 1;
121127
}
122-
}
123128

124-
public override object Clone()
125-
{
126-
BasicProperties clone = MemberwiseClone() as BasicProperties;
127-
if (IsHeadersPresent())
129+
public override object Clone()
128130
{
129-
clone.Headers = new Hashtable();
130-
foreach (DictionaryEntry entry in Headers)
131-
clone.Headers[entry.Key] = entry.Value;
132-
}
131+
BasicProperties clone = MemberwiseClone() as BasicProperties;
132+
if (IsHeadersPresent())
133+
{
134+
clone.Headers = new Hashtable();
135+
foreach (DictionaryEntry entry in Headers)
136+
clone.Headers[entry.Key] = entry.Value;
137+
}
133138

134-
return clone;
135-
}
139+
return clone;
140+
}
136141
}
137142
}

0 commit comments

Comments
 (0)