本文整理汇总了C#中RabbitMQ.ReadUInt16方法的典型用法代码示例。如果您正苦于以下问题:C# RabbitMQ.ReadUInt16方法的具体用法?C# RabbitMQ.ReadUInt16怎么用?C# RabbitMQ.ReadUInt16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RabbitMQ
的用法示例。
在下文中一共展示了RabbitMQ.ReadUInt16方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DecodeContentHeaderFrom
public override RabbitMQ.Client.Impl.ContentHeaderBase DecodeContentHeaderFrom(RabbitMQ.Util.NetworkBinaryReader reader)
{
ushort classId = reader.ReadUInt16();
switch (classId) {
case 60: return new BasicProperties();
case 70: return new FileProperties();
case 80: return new StreamProperties();
case 110: return new TunnelProperties();
default: break;
}
throw new RabbitMQ.Client.Impl.UnknownClassOrMethodException(classId, 0);
}
示例2: DecodeMethodFrom
public override RabbitMQ.Client.Impl.MethodBase DecodeMethodFrom(RabbitMQ.Util.NetworkBinaryReader reader)
{
ushort classId = reader.ReadUInt16();
ushort methodId = reader.ReadUInt16();
switch (classId) {
case 10: {
switch (methodId) {
case 10: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionStart result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionStart();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 11: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionStartOk result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionStartOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 20: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionSecure result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionSecure();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 21: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionSecureOk result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionSecureOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 30: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionTune result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionTune();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 31: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionTuneOk result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionTuneOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 40: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionOpen result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionOpen();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 41: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionOpenOk result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionOpenOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 42: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionRedirect result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionRedirect();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 50: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionClose result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionClose();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 51: {
RabbitMQ.Client.Framing.Impl.v0_9.ConnectionCloseOk result = new RabbitMQ.Client.Framing.Impl.v0_9.ConnectionCloseOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
default: break;
}
break;
}
case 20: {
switch (methodId) {
case 10: {
RabbitMQ.Client.Framing.Impl.v0_9.ChannelOpen result = new RabbitMQ.Client.Framing.Impl.v0_9.ChannelOpen();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 11: {
RabbitMQ.Client.Framing.Impl.v0_9.ChannelOpenOk result = new RabbitMQ.Client.Framing.Impl.v0_9.ChannelOpenOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 20: {
RabbitMQ.Client.Framing.Impl.v0_9.ChannelFlow result = new RabbitMQ.Client.Framing.Impl.v0_9.ChannelFlow();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 21: {
RabbitMQ.Client.Framing.Impl.v0_9.ChannelFlowOk result = new RabbitMQ.Client.Framing.Impl.v0_9.ChannelFlowOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 40: {
RabbitMQ.Client.Framing.Impl.v0_9.ChannelClose result = new RabbitMQ.Client.Framing.Impl.v0_9.ChannelClose();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 41: {
RabbitMQ.Client.Framing.Impl.v0_9.ChannelCloseOk result = new RabbitMQ.Client.Framing.Impl.v0_9.ChannelCloseOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 50: {
//.........这里部分代码省略.........
示例3: DecodeMethodFrom
public override RabbitMQ.Client.Impl.MethodBase DecodeMethodFrom(RabbitMQ.Util.NetworkBinaryReader reader)
{
ushort classId = reader.ReadUInt16();
ushort methodId = reader.ReadUInt16();
switch (classId) {
case 10: {
switch (methodId) {
case 10: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionStart result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionStart();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 11: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionStartOk result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionStartOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 20: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionSecure result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionSecure();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 21: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionSecureOk result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionSecureOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 30: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionTune result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionTune();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 31: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionTuneOk result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionTuneOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 40: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionOpen result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionOpen();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 41: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionOpenOk result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionOpenOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 50: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionClose result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionClose();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 51: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionCloseOk result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ConnectionCloseOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
default: break;
}
break;
}
case 20: {
switch (methodId) {
case 10: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelOpen result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelOpen();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 11: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelOpenOk result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelOpenOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 20: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelFlow result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelFlow();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 21: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelFlowOk result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelFlowOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 40: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelClose result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelClose();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
case 41: {
RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelCloseOk result = new RabbitMQ.Client.Framing.Impl.v0_9_1.ChannelCloseOk();
result.ReadArgumentsFrom(new RabbitMQ.Client.Impl.MethodArgumentReader(reader));
return result;
}
default: break;
}
break;
}
case 40: {
switch (methodId) {
//.........这里部分代码省略.........