/// <summary> /// Given a view function, build up the view name for use as the view param to the continuous feed /// </summary> /// <param name="vf">ViewFunction that is attached to a design document</param> /// <returns>New Continuous object (non-started)</returns> public Continuous View(Design.ViewFunction vf) { var new_c = new Continuous(this.db); new_c.couchUrl = this.couchUrl; new_c.couchUrl = new_c.couchUrl.QueryString("view", string.Format("{0}/{1}", vf.dd.ID, vf.Name)); return(new_c); }
/// <summary> /// VIEW RETRIEVAL /// </summary> /// <param name="mapFunction"></param> /// <returns></returns> internal Task <T> GetView <T>(ViewFunction viewFcn) { return(this.db.Get <T>(viewFcn.viewUrl)); }
internal Task <T> PostView <T>(ViewFunction viewFcn, object post_data) { return(this.db.Post <T>(viewFcn.viewUrl, this.db.couchRepo.SerializeToRequest(post_data))); }