Пример #1
0
 protected override void EnsureRequired()
 {
     if (this.ContainerId == null)
     {
         throw AmqpEncoding.GetEncodingException(SRAmqp.AmqpRequiredFieldNotSet("container-id", Open.Name));
     }
 }
Пример #2
0
 protected override void EnsureRequired()
 {
     if (this.Condition.Value == null)
     {
         throw AmqpEncoding.GetEncodingException(SRAmqp.AmqpRequiredFieldNotSet("condition", Error.Name));
     }
 }
Пример #3
0
 protected override void EnsureRequired()
 {
     if (!base.Handle.HasValue)
     {
         throw AmqpEncoding.GetEncodingException(SRAmqp.AmqpRequiredFieldNotSet("handle", Transfer.Name));
     }
 }
Пример #4
0
 protected override void EnsureRequired()
 {
     if (!this.Role.HasValue)
     {
         throw AmqpEncoding.GetEncodingException(SRAmqp.AmqpRequiredFieldNotSet("role", Disposition.Name));
     }
     if (!this.First.HasValue)
     {
         throw AmqpEncoding.GetEncodingException(SRAmqp.AmqpRequiredFieldNotSet("first", Disposition.Name));
     }
 }
Пример #5
0
 protected override void EnsureRequired()
 {
     if (this.LinkName == null)
     {
         throw AmqpEncoding.GetEncodingException(SRAmqp.AmqpRequiredFieldNotSet("name", Attach.Name));
     }
     if (!base.Handle.HasValue)
     {
         throw AmqpEncoding.GetEncodingException(SRAmqp.AmqpRequiredFieldNotSet("handle", Attach.Name));
     }
     if (!this.Role.HasValue)
     {
         throw AmqpEncoding.GetEncodingException(SRAmqp.AmqpRequiredFieldNotSet("role", Attach.Name));
     }
 }