Ejemplo n.º 1
0
        public static string UseClassWrapper(this string code, ISwaggerInterfaceBuilderContext context)
        {
            var wrapper = new ClassWrapper(code, context.Settings.CSharpGeneratorSettings.Namespace,
                                           context.Root.GetUsingDirectives());

            return(wrapper.Get());
        }
 public static string GetSwaggerExceptionClass(this CompilationUnitSyntax tree,
                                               ISwaggerInterfaceBuilderContext context)
 {
     return(GetClass(tree, context.Settings.ExceptionClass));
 }
 public static string GetApiClass(this CompilationUnitSyntax tree, ISwaggerInterfaceBuilderContext context)
 {
     return(GetClass(tree, context.Settings.ClassName));
 }