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);
         }
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
 public void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _protoCompatibility ? "compatibility" : ""))
         _serializer.WriteDebugSchema(builder);
 }
Exemplo n.º 4
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _property.Name))
         Tail.WriteDebugSchema(builder);
 }
Exemplo n.º 5
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _wireType.ToString()))
         Tail.WriteDebugSchema(builder);
 }
Exemplo n.º 6
0
 public virtual void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this))
         Tail.WriteDebugSchema(builder);
 }
Exemplo n.º 7
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _listHelpers.MakeDebugSchemaDescription(AppendToCollection)))
         Tail.WriteDebugSchema(builder);
 }
Exemplo n.º 8
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _getSpecified.Name))
         Tail.WriteDebugSchema(builder);
 }
Exemplo n.º 9
0
 public override void WriteDebugSchema(IDebugSchemaBuilder builder)
 {
     using (builder.SingleTailDecorator(this, _defaultValue?.ToString()))
         Tail.WriteDebugSchema(builder);
 }