コード例 #1
0
        List <IEndPoint> EndPoints(R.Config.Update.IUpdatePackage pkg)
        {
            List <IEndPoint> res = new List <IEndPoint>();

            foreach (var p in pkg.PackageFiles.Where(x => x.Status == PackageFileStatus.AnalyzedReady))
            {
                var c = ComponentFactory.Create(p.Config);
                DbService.AddCollection("user", "id");
                var ep = new RestEndPoint()
                {
                    Uri = p.Config.Uri, Component = c, Method = p.Config.Method
                };
                res.Add(ep);
            }
            return(res);
        }
コード例 #2
0
 static void RegisterEndPoint(RestEndPoint endPoint)
 {
     RoutingTable.Register(endPoint);
 }