Skip to content

Commit 11009f5

Browse files
author
Matthias Radestock
committed
merge bug20456 into default
2 parents fffffc6 + 7257bbb commit 11009f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+692
-633
lines changed

.hgignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ syntax: regexp
66
^releases$
77

88
^src/wcf/.*/(bin|obj)$
9+
^src/wcf/.*/*.suo$
910

1011
^src/wcf/RabbitMQ\.ServiceModel/RabbitMQ\.ServiceModel\.xml
1112
^src/wcf/RabbitMQ\.ServiceModel/AssemblyInfo\.cs$
13+
~$
14+

docs/wikipages/data.ApiGen.txt

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ implement. The common interface is in two pieces:
227227

228228
Apigen is linked with these interfaces, and at runtime uses reflection
229229
to look for the [code IFullModel] interface (see definition of [code
230-
Apigen.modelType]).
230+
Apigen.m_modelType]).
231231

232232
The definitions in [code IFullModel], taken together with the class
233233
and method definitions in the AMQP specification XML, guide the code
@@ -463,9 +463,9 @@ of the [code queue.purge-ok] reply.
463463
@code java
464464
public struct ConnectionTuneDetails
465465
{
466-
public ushort channelMax;
467-
public uint frameMax;
468-
public ushort heartbeat;
466+
public ushort m_channelMax;
467+
public uint m_frameMax;
468+
public ushort m_heartbeat;
469469
}
470470

471471
The above example extracts the "channel-max", "frame-max" and

src/apigen/AmqpClass.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@
6060

6161
namespace RabbitMQ.Client.Apigen {
6262
public class AmqpClass: AmqpEntity {
63-
public ArrayList Methods;
64-
public ArrayList Fields;
63+
public ArrayList m_Methods;
64+
public ArrayList m_Fields;
6565

6666
public AmqpClass(XmlNode n)
6767
: base(n)
6868
{
69-
Methods = new ArrayList();
69+
m_Methods = new ArrayList();
7070
foreach (XmlNode m in n.SelectNodes("method")) {
71-
Methods.Add(new AmqpMethod(m));
71+
m_Methods.Add(new AmqpMethod(m));
7272
}
73-
Fields = new ArrayList();
73+
m_Fields = new ArrayList();
7474
foreach (XmlNode f in n.SelectNodes("field")) {
75-
Fields.Add(new AmqpField(f));
75+
m_Fields.Add(new AmqpField(f));
7676
}
7777
}
7878

@@ -84,15 +84,16 @@ public int Index {
8484

8585
public bool NeedsProperties {
8686
get {
87-
foreach (AmqpMethod m in Methods) {
87+
foreach (AmqpMethod m in m_Methods) {
8888
if (m.HasContent) return true;
8989
}
9090
return false;
9191
}
9292
}
9393

9494
public AmqpMethod MethodNamed(string name) {
95-
foreach (AmqpMethod m in Methods) {
95+
foreach (AmqpMethod m in m_Methods)
96+
{
9697
if (m.Name == name) {
9798
return m;
9899
}

src/apigen/AmqpEntity.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,22 @@
5959

6060
namespace RabbitMQ.Client.Apigen {
6161
public class AmqpEntity {
62-
public XmlNode node;
62+
public XmlNode m_node;
6363

6464
public AmqpEntity(XmlNode n) {
65-
this.node = n;
65+
m_node = n;
6666
}
6767

6868
public string GetString(string path) {
69-
return Apigen.GetString(node, path);
69+
return Apigen.GetString(m_node, path);
7070
}
7171

7272
public string GetString(string path, string d) {
73-
return Apigen.GetString(node, path, d);
73+
return Apigen.GetString(m_node, path, d);
7474
}
7575

7676
public int GetInt(string path) {
77-
return Apigen.GetInt(node, path);
77+
return Apigen.GetInt(m_node, path);
7878
}
7979

8080
public string Name {

src/apigen/AmqpMethod.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@
6060

6161
namespace RabbitMQ.Client.Apigen {
6262
public class AmqpMethod: AmqpEntity {
63-
public ArrayList Fields;
64-
public ArrayList ResponseMethods;
63+
public ArrayList m_Fields;
64+
public ArrayList m_ResponseMethods;
6565

6666
public AmqpMethod(XmlNode n)
6767
: base(n)
6868
{
69-
Fields = new ArrayList();
69+
m_Fields = new ArrayList();
7070
foreach (XmlNode f in n.SelectNodes("field")) {
71-
Fields.Add(new AmqpField(f));
71+
m_Fields.Add(new AmqpField(f));
7272
}
73-
ResponseMethods = new ArrayList();
73+
m_ResponseMethods = new ArrayList();
7474
foreach (XmlNode r in n.SelectNodes("response")) {
75-
ResponseMethods.Add(Apigen.GetString(r, "@name"));
75+
m_ResponseMethods.Add(Apigen.GetString(r, "@name"));
7676
}
7777
}
7878

@@ -84,7 +84,7 @@ public bool HasContent {
8484

8585
public bool IsSimpleRpcRequest {
8686
get {
87-
return ResponseMethods.Count == 1;
87+
return m_ResponseMethods.Count == 1;
8888
}
8989
}
9090

0 commit comments

Comments
 (0)