public static AMQFrame CreateAMQFrame(ushort channelId, byte VersionMajor, byte VersionMinor, FieldTable ServerProperties, byte[] Mechanisms, byte[] Locales) { ConnectionStartBody body = new ConnectionStartBody(); body.VersionMajor = VersionMajor; body.VersionMinor = VersionMinor; body.ServerProperties = ServerProperties; body.Mechanisms = Mechanisms; body.Locales = Locales; AMQFrame frame = new AMQFrame(); frame.Channel = channelId; frame.BodyFrame = body; return(frame); }
public static AMQFrame CreateAMQFrame(ushort channelId, byte VersionMajor, byte VersionMinor, FieldTable ServerProperties, byte[] Mechanisms, byte[] Locales) { ConnectionStartBody body = new ConnectionStartBody(); body.VersionMajor = VersionMajor; body.VersionMinor = VersionMinor; body.ServerProperties = ServerProperties; body.Mechanisms = Mechanisms; body.Locales = Locales; AMQFrame frame = new AMQFrame(); frame.Channel = channelId; frame.BodyFrame = body; return frame; }