Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            IReadOnlyCollection <IWeapon> weapons = new List <IWeapon>();
            var engine = new CodeExecute(weapons as IList <IWeapon>);

            engine.Run();
        }
Ejemplo n.º 2
0
 public ApiJsDoc(string RouteName, string HostName)
 {
     this.ParamSetting = (p) => {
         if (p.Length == 1)
         {
             var p1name = p[0].Name;
             this.CodeExecutes = new List <CodeExecute>();
             CodeExecute codeExecute = new CodeExecute();
             codeExecute.Code = $@"var _ret = EasyDefine.ServiceFramework.Runtime.ApiInfo.GetApis({p1name}).ToDoc(""{RouteName}"",""{HostName}"")";
             this.Return      = new Attributes.Return();
             this.Return.Var  = "ret";
             this.CodeExecutes.Add(codeExecute);
         }
     };
 }