public void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this))
     {
         var b = builder.Contract(_model[_baseTypeKey].Serializer.ExpectedType);
         if (b != null)
         {
             _model[_baseTypeKey].Serializer.WriteDebugSchema(b);
         }
     }
 }
示例#2
0
        public void WriteDebugSchema(IDebugSchemaBuilder builder)
        {
            string description = _options.ToString();

            if (_allowNullWireType)
            {
                if (!string.IsNullOrEmpty(description))
                {
                    description += ", ";
                }
                description += "WithNullWireType";
            }
            var s = (_tail ?? _baseKeySerializer);

            if (s != null)
            {
                using (builder.SingleTailDecorator(this, description))
                    s.WriteDebugSchema(builder);
            }
            else
            {
                builder.SingleValueSerializer(this, description);
            }
        }
示例#3
0
 public void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _protoCompatibility ? "compatibility" : ""))
         _serializer.WriteDebugSchema(builder);
 }
示例#4
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _property.Name))
         Tail.WriteDebugSchema(builder);
 }
示例#5
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _wireType.ToString()))
         Tail.WriteDebugSchema(builder);
 }
 public virtual void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this))
         Tail.WriteDebugSchema(builder);
 }
示例#7
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _listHelpers.MakeDebugSchemaDescription(AppendToCollection)))
         Tail.WriteDebugSchema(builder);
 }
示例#8
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _getSpecified.Name))
         Tail.WriteDebugSchema(builder);
 }
示例#9
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _defaultValue?.ToString()))
         Tail.WriteDebugSchema(builder);
 }