Avro.CodeGen.AvroGen.GenerateClient C# (CSharp) Метод

GenerateClient() публичный Метод

public GenerateClient ( ) : CodeCompileUnit
Результат System.CodeDom.CodeCompileUnit
        public CodeCompileUnit GenerateClient()
        {
            _CompileUnit = new CodeCompileUnit();

            processTypes();
            
            processClientProtocols();

            return _CompileUnit;
        }

Usage Example

Пример #1
0
 private static CodeCompileUnit generate(AvroGen generator)
 {
     CodeCompileUnit cu = generator.GenerateClient();
     Assert.IsNotNull(cu);
     Assert.IsTrue(cu.Namespaces.Count > 0, "Some namespaces should have been generated.");
     return cu;
 }