Пример #1
0
        public static SchemaBuilderScope BuildSchema(this SchemaBuilderScope scope, ProtoBuf.Meta.ProtoSyntax sintax = ProtoBuf.Meta.ProtoSyntax.Proto2)
        {
            ISchemaRender      render  = new ProtobuffSchemaRender(sintax);
            ProtoSchemaBuilder builder = new ProtoSchemaBuilder(render);
            string             schema  = builder.BuildSchema(scope.Types);

            scope.Schema = schema;
            return(scope);
        }
Пример #2
0
 public ProtobuffSchemaRender(ProtoBuf.Meta.ProtoSyntax sintax)
 {
     this.Sintax = sintax;
 }
Пример #3
0
 public ProtobuffSchemaRender()
 {
     this.Sintax = ProtoBuf.Meta.ProtoSyntax.Proto2;
 }