Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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;
 }