Exemplo n.º 1
0
 public static AMQFrame CreateAMQFrame(ushort channelId)
 {
     QueueBindOkBody body = new QueueBindOkBody();
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 2
0
 public static AMQFrame CreateAMQFrame(ushort channelId)
 {
     ConnectionCloseOkBody body = new ConnectionCloseOkBody();
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 3
0
 public static AMQFrame CreateAMQFrame(ushort channelId)
 {
     ExchangeDeleteOkBody body = new ExchangeDeleteOkBody();
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 4
0
 public static AMQFrame CreateAMQFrame(ushort channelId)
 {
     DtxSelectOkBody body = new DtxSelectOkBody();
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 5
0
 public static AMQFrame CreateAMQFrame(ushort channelId)
 {
     BasicQosOkBody body = new BasicQosOkBody();
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 6
0
 public static AMQFrame CreateAMQFrame(ushort channelId)
 {
     TxCommitBody body = new TxCommitBody();
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 7
0
 public static AMQFrame CreateAMQFrame(ushort channelId)
 {
     FileStageBody body = new FileStageBody();
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 8
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string KnownHosts)
 {
     ConnectionOpenOkBody body = new ConnectionOpenOkBody();
     body.KnownHosts = KnownHosts;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 9
0
 public static AMQFrame CreateAMQFrame(ushort channelId, bool Requeue)
 {
     BasicRecoverBody body = new BasicRecoverBody();
     body.Requeue = Requeue;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 10
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ulong StagedSize)
 {
     FileOpenOkBody body = new FileOpenOkBody();
     body.StagedSize = StagedSize;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 11
0
 public static AMQFrame CreateAMQFrame(ushort channelId, byte[] Challenge)
 {
     ConnectionSecureBody body = new ConnectionSecureBody();
     body.Challenge = Challenge;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 12
0
 public static AMQFrame CreateAMQFrame(ushort channelId, byte[] Result)
 {
     TestStringOkBody body = new TestStringOkBody();
     body.Result = Result;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 13
0
 public static AMQFrame CreateAMQFrame(ushort channelId, bool Active)
 {
     ChannelFlowBody body = new ChannelFlowBody();
     body.Active = Active;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 14
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket)
 {
     AccessRequestOkBody body = new AccessRequestOkBody();
     body.Ticket = Ticket;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 15
0
 public static AMQFrame CreateAMQFrame(ushort channelId, uint MessageCount)
 {
     QueuePurgeOkBody body = new QueuePurgeOkBody();
     body.MessageCount = MessageCount;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 16
0
 public static AMQFrame CreateAMQFrame(ushort channelId, uint ContentChecksum)
 {
     TestContentOkBody body = new TestContentOkBody();
     body.ContentChecksum = ContentChecksum;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 17
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string ConsumerTag)
 {
     StreamConsumeOkBody body = new StreamConsumeOkBody();
     body.ConsumerTag = ConsumerTag;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 18
0
 public static AMQFrame CreateAMQFrame(ushort channelId, FieldTable MetaData)
 {
     TunnelRequestBody body = new TunnelRequestBody();
     body.MetaData = MetaData;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 19
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string ClusterId)
 {
     BasicGetEmptyBody body = new BasicGetEmptyBody();
     body.ClusterId = ClusterId;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 20
0
 public static AMQFrame CreateAMQFrame(ushort channelId, byte[] Response)
 {
     ConnectionSecureOkBody body = new ConnectionSecureOkBody();
     body.Response = Response;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 21
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string DtxIdentifier)
 {
     DtxStartBody body = new DtxStartBody();
     body.DtxIdentifier = DtxIdentifier;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 22
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ulong Result)
 {
     TestIntegerOkBody body = new TestIntegerOkBody();
     body.Result = Result;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 23
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string OutOfBand)
 {
     ChannelOpenBody body = new ChannelOpenBody();
     body.OutOfBand = OutOfBand;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 24
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ulong DeliveryTag, bool Requeue)
 {
     BasicRejectBody body = new BasicRejectBody();
     body.DeliveryTag = DeliveryTag;
     body.Requeue = Requeue;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 25
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string Identifier, ulong ContentSize)
 {
     FileOpenBody body = new FileOpenBody();
     body.Identifier = Identifier;
     body.ContentSize = ContentSize;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 26
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string ConsumerTag, bool Nowait)
 {
     BasicCancelBody body = new BasicCancelBody();
     body.ConsumerTag = ConsumerTag;
     body.Nowait = Nowait;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 27
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ulong IntegerResult, byte[] StringResult)
 {
     TestTableOkBody body = new TestTableOkBody();
     body.IntegerResult = IntegerResult;
     body.StringResult = StringResult;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 28
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ulong DeliveryTag, bool Multiple)
 {
     BasicAckBody body = new BasicAckBody();
     body.DeliveryTag = DeliveryTag;
     body.Multiple = Multiple;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 29
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ushort ReplyCode, string ReplyText)
 {
     ExchangeBoundOkBody body = new ExchangeBoundOkBody();
     body.ReplyCode = ReplyCode;
     body.ReplyText = ReplyText;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 30
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ushort ReplyCode, string ReplyText, FieldTable Details)
 {
     ChannelAlertBody body = new ChannelAlertBody();
     body.ReplyCode = ReplyCode;
     body.ReplyText = ReplyText;
     body.Details = Details;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
        public static AMQFrame CreateAMQFrame(ushort channelId, string Exchange, string RoutingKey, string Queue)
        {
            ExchangeBoundBody body = new ExchangeBoundBody();

            body.Exchange   = Exchange;
            body.RoutingKey = RoutingKey;
            body.Queue      = Queue;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 32
0
        public static AMQFrame CreateAMQFrame(ushort channelId, FieldTable Table, byte IntegerOp, byte StringOp)
        {
            TestTableBody body = new TestTableBody();

            body.Table     = Table;
            body.IntegerOp = IntegerOp;
            body.StringOp  = StringOp;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 33
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Queue, bool NoAck)
        {
            BasicGetBody body = new BasicGetBody();

            body.Ticket = Ticket;
            body.Queue  = Queue;
            body.NoAck  = NoAck;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 34
0
        public static AMQFrame CreateAMQFrame(ushort channelId, uint PrefetchSize, ushort PrefetchCount, bool Global)
        {
            BasicQosBody body = new BasicQosBody();

            body.PrefetchSize  = PrefetchSize;
            body.PrefetchCount = PrefetchCount;
            body.Global        = Global;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, string Queue, uint MessageCount, uint ConsumerCount)
        {
            QueueDeclareOkBody body = new QueueDeclareOkBody();

            body.Queue         = Queue;
            body.MessageCount  = MessageCount;
            body.ConsumerCount = ConsumerCount;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, string ConsumerTag, ulong DeliveryTag, string Exchange, string Queue)
        {
            StreamDeliverBody body = new StreamDeliverBody();

            body.ConsumerTag = ConsumerTag;
            body.DeliveryTag = DeliveryTag;
            body.Exchange    = Exchange;
            body.Queue       = Queue;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Exchange, bool IfUnused, bool Nowait)
        {
            ExchangeDeleteBody body = new ExchangeDeleteBody();

            body.Ticket   = Ticket;
            body.Exchange = Exchange;
            body.IfUnused = IfUnused;
            body.Nowait   = Nowait;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort ReplyCode, string ReplyText, ushort ClassId, ushort MethodId)
        {
            ChannelCloseBody body = new ChannelCloseBody();

            body.ReplyCode = ReplyCode;
            body.ReplyText = ReplyText;
            body.ClassId   = ClassId;
            body.MethodId  = MethodId;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort ReplyCode, string ReplyText, string Exchange, string RoutingKey)
        {
            BasicReturnBody body = new BasicReturnBody();

            body.ReplyCode  = ReplyCode;
            body.ReplyText  = ReplyText;
            body.Exchange   = Exchange;
            body.RoutingKey = RoutingKey;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 40
0
        public static AMQFrame CreateAMQFrame(ushort channelId, FieldTable ClientProperties, string Mechanism, byte[] Response, string Locale)
        {
            ConnectionStartOkBody body = new ConnectionStartOkBody();

            body.ClientProperties = ClientProperties;
            body.Mechanism        = Mechanism;
            body.Response         = Response;
            body.Locale           = Locale;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 41
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);
        }
Exemplo n.º 42
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ulong DeliveryTag, bool Redelivered, string Exchange, string RoutingKey, uint MessageCount)
        {
            BasicGetOkBody body = new BasicGetOkBody();

            body.DeliveryTag  = DeliveryTag;
            body.Redelivered  = Redelivered;
            body.Exchange     = Exchange;
            body.RoutingKey   = RoutingKey;
            body.MessageCount = MessageCount;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 43
0
        public static AMQFrame CreateAMQFrame(ushort channelId, byte Integer1, ushort Integer2, uint Integer3, ulong Integer4, byte Operation)
        {
            TestIntegerBody body = new TestIntegerBody();

            body.Integer1  = Integer1;
            body.Integer2  = Integer2;
            body.Integer3  = Integer3;
            body.Integer4  = Integer4;
            body.Operation = Operation;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 44
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Exchange, string RoutingKey, bool Mandatory, bool Immediate)
        {
            BasicPublishBody body = new BasicPublishBody();

            body.Ticket     = Ticket;
            body.Exchange   = Exchange;
            body.RoutingKey = RoutingKey;
            body.Mandatory  = Mandatory;
            body.Immediate  = Immediate;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, string ConsumerTag, ulong DeliveryTag, bool Redelivered, string Exchange, string RoutingKey)
        {
            BasicDeliverBody body = new BasicDeliverBody();

            body.ConsumerTag = ConsumerTag;
            body.DeliveryTag = DeliveryTag;
            body.Redelivered = Redelivered;
            body.Exchange    = Exchange;
            body.RoutingKey  = RoutingKey;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Queue, bool IfUnused, bool IfEmpty, bool Nowait)
        {
            QueueDeleteBody body = new QueueDeleteBody();

            body.Ticket   = Ticket;
            body.Queue    = Queue;
            body.IfUnused = IfUnused;
            body.IfEmpty  = IfEmpty;
            body.Nowait   = Nowait;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Queue, string ConsumerTag, bool NoLocal, bool Exclusive, bool Nowait)
        {
            StreamConsumeBody body = new StreamConsumeBody();

            body.Ticket      = Ticket;
            body.Queue       = Queue;
            body.ConsumerTag = ConsumerTag;
            body.NoLocal     = NoLocal;
            body.Exclusive   = Exclusive;
            body.Nowait      = Nowait;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, string Realm, bool Exclusive, bool Passive, bool Active, bool Write, bool Read)
        {
            AccessRequestBody body = new AccessRequestBody();

            body.Realm     = Realm;
            body.Exclusive = Exclusive;
            body.Passive   = Passive;
            body.Active    = Active;
            body.Write     = Write;
            body.Read      = Read;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 49
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Queue, string Exchange, string RoutingKey, bool Nowait, FieldTable Arguments)
        {
            QueueBindBody body = new QueueBindBody();

            body.Ticket     = Ticket;
            body.Queue      = Queue;
            body.Exchange   = Exchange;
            body.RoutingKey = RoutingKey;
            body.Nowait     = Nowait;
            body.Arguments  = Arguments;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Exemplo n.º 50
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Queue, string ConsumerTag, bool NoLocal, bool NoAck, bool Exclusive, bool Nowait, FieldTable Arguments)
        {
            BasicConsumeBody body = new BasicConsumeBody();

            body.Ticket      = Ticket;
            body.Queue       = Queue;
            body.ConsumerTag = ConsumerTag;
            body.NoLocal     = NoLocal;
            body.NoAck       = NoAck;
            body.Exclusive   = Exclusive;
            body.Nowait      = Nowait;
            body.Arguments   = Arguments;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Queue, bool Passive, bool Durable, bool Exclusive, bool AutoDelete, bool Nowait, FieldTable Arguments)
        {
            QueueDeclareBody body = new QueueDeclareBody();

            body.Ticket     = Ticket;
            body.Queue      = Queue;
            body.Passive    = Passive;
            body.Durable    = Durable;
            body.Exclusive  = Exclusive;
            body.AutoDelete = AutoDelete;
            body.Nowait     = Nowait;
            body.Arguments  = Arguments;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Exchange, string Type, bool Passive, bool Durable, bool AutoDelete, bool Internal, bool Nowait, FieldTable Arguments)
        {
            ExchangeDeclareBody body = new ExchangeDeclareBody();

            body.Ticket     = Ticket;
            body.Exchange   = Exchange;
            body.Type       = Type;
            body.Passive    = Passive;
            body.Durable    = Durable;
            body.AutoDelete = AutoDelete;
            body.Internal   = Internal;
            body.Nowait     = Nowait;
            body.Arguments  = Arguments;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
        protected Object CreateAndPopulateFrame(ByteBuffer input)
        {
            byte   type     = input.GetByte();
            ushort channel  = input.GetUInt16();
            uint   bodySize = input.GetUInt32();

            IBodyFactory bodyFactory = (IBodyFactory)_supportedBodies[type];

            if (bodyFactory == null)
            {
                throw new AMQFrameDecodingException("Unsupported body type: " + type);
            }
            AMQFrame frame = new AMQFrame();

            frame.PopulateFromBuffer(input, channel, bodySize, bodyFactory);

            byte marker = input.GetByte();

            if (marker != 0xCE)
            {
                throw new FormatException("marker is not 0xCE");
            }
            return(frame);
        }