コード例 #1
0
        protected override int OnValueSize()
        {
            int valueSize = 0;

            valueSize += Address.GetEncodeSize(this.Address);
            valueSize += AmqpCodec.GetUIntEncodeSize(this.Durable);
            valueSize += AmqpCodec.GetSymbolEncodeSize(this.ExpiryPolicy);
            valueSize += AmqpCodec.GetUIntEncodeSize(this.Timeout);
            valueSize += AmqpCodec.GetBooleanEncodeSize(this.Dynamic);
            valueSize += AmqpCodec.GetMapEncodeSize(this.DynamicNodeProperties);
            valueSize += AmqpCodec.GetMultipleEncodeSize(this.Capabilities);

            return(valueSize);
        }
コード例 #2
0
ファイル: Source.cs プロジェクト: tralivali1234/IL2JS
        protected override int OnValueSize()
        {
            int valueSize = 0;

            valueSize += Address.GetEncodeSize(this.Address);
            valueSize += AmqpCodec.GetUIntEncodeSize(this.Durable);
            valueSize += AmqpCodec.GetSymbolEncodeSize(this.ExpiryPolicy);
            valueSize += AmqpCodec.GetUIntEncodeSize(this.Timeout);
            valueSize += AmqpCodec.GetBooleanEncodeSize(this.Dynamic);
            valueSize += AmqpCodec.GetMapEncodeSize(this.DynamicNodeProperties);
            valueSize += AmqpCodec.GetSymbolEncodeSize(this.DistributionMode);
            valueSize += AmqpCodec.GetMapEncodeSize(this.FilterSet);
            valueSize += AmqpCodec.GetSerializableEncodeSize(this.DefaultOutcome);
            valueSize += AmqpCodec.GetMultipleEncodeSize(this.Outcomes);
            valueSize += AmqpCodec.GetMultipleEncodeSize(this.Capabilities);

            return(valueSize);
        }
コード例 #3
0
        protected override int OnValueSize()
        {
            int encodeSize = 0;

            encodeSize = Microsoft.ServiceBus.Messaging.Amqp.Framing.MessageId.GetEncodeSize(this.MessageId);
            encodeSize = encodeSize + AmqpCodec.GetBinaryEncodeSize(this.UserId);
            encodeSize = encodeSize + Address.GetEncodeSize(this.To);
            encodeSize = encodeSize + AmqpCodec.GetStringEncodeSize(this.Subject);
            encodeSize = encodeSize + Address.GetEncodeSize(this.ReplyTo);
            encodeSize = encodeSize + Microsoft.ServiceBus.Messaging.Amqp.Framing.MessageId.GetEncodeSize(this.CorrelationId);
            encodeSize = encodeSize + AmqpCodec.GetSymbolEncodeSize(this.ContentType);
            encodeSize = encodeSize + AmqpCodec.GetSymbolEncodeSize(this.ContentEncoding);
            encodeSize = encodeSize + AmqpCodec.GetTimeStampEncodeSize(this.AbsoluteExpiryTime);
            encodeSize = encodeSize + AmqpCodec.GetTimeStampEncodeSize(this.CreationTime);
            encodeSize = encodeSize + AmqpCodec.GetStringEncodeSize(this.GroupId);
            encodeSize = encodeSize + AmqpCodec.GetUIntEncodeSize(this.GroupSequence);
            return(encodeSize + AmqpCodec.GetStringEncodeSize(this.ReplyToGroupId));
        }
コード例 #4
0
        protected override int OnValueSize()
        {
            int valueSize = 0;

            valueSize  = MessageId.GetEncodeSize(this.MessageId);
            valueSize += AmqpCodec.GetBinaryEncodeSize(this.UserId);
            valueSize += Address.GetEncodeSize(this.To);
            valueSize += AmqpCodec.GetStringEncodeSize(this.Subject);
            valueSize += Address.GetEncodeSize(this.ReplyTo);
            valueSize += MessageId.GetEncodeSize(this.CorrelationId);
            valueSize += AmqpCodec.GetSymbolEncodeSize(this.ContentType);
            valueSize += AmqpCodec.GetSymbolEncodeSize(this.ContentEncoding);
            valueSize += AmqpCodec.GetTimeStampEncodeSize(this.AbsoluteExpiryTime);
            valueSize += AmqpCodec.GetTimeStampEncodeSize(this.CreationTime);
            valueSize += AmqpCodec.GetStringEncodeSize(this.GroupId);
            valueSize += AmqpCodec.GetUIntEncodeSize(this.GroupSequence);
            valueSize += AmqpCodec.GetStringEncodeSize(this.ReplyToGroupId);

            return(valueSize);
        }