Esempio n. 1
0
        protected virtual string BuildServiceCommand(ServiceCommandDefine commandDefine)
        {
            StringBuilder commandBuilder = new StringBuilder();

            //方法注释
            this.BuildServiceCommandComment(commandBuilder, commandDefine);

            //方法明细
            commandBuilder.AppendLine(string.Format(SERVICE_COMMAND, ROOT_NAMESPACE, commandDefine.ServiceAssemblyName, commandDefine.ServiceCommandName));
            return(commandBuilder.ToString());
        }
Esempio n. 2
0
 protected virtual void BuildServiceCommandComment(StringBuilder commandBuilder, ServiceCommandDefine commandDefine)
 {
     commandBuilder.AppendLine("    /**");
     commandBuilder.AppendLine("     * @input: " + commandDefine.InputTypeDefine.Replace("\r\n", "\r\n     * "));
     commandBuilder.AppendLine("     * ");
     commandBuilder.AppendLine("     * @output: " + commandDefine.OutputTypeDefine.Replace("\r\n", "\r\n     * "));
     commandBuilder.AppendLine("     */");
 }