예제 #1
0
파일: DB.cs 프로젝트: dedels/Bunk
        public DB(CouchRepo couchRepo, string name)
        {
            this.couchRepo = couchRepo;
            this.name      = name;
            this.couchUrl  = this.couchRepo.couchUrl.DB(name);

            this.allDocs = new Design.AllDocs(this);
        }
예제 #2
0
 internal static CouchUrl Create(CouchRepo couchRepo, FSharpList <string> path, FSharpMap <string, string> queryString, FSharpList <CouchFilter> filters)
 {
     return(new CouchUrl()
     {
         couchRepo = couchRepo,
         path = path ?? ListModule.Empty <string>(),
         queryString = queryString ?? MapModule.Empty <string, string>(),
         filters = filters ?? ListModule.Empty <CouchFilter>()
     });
 }
예제 #3
0
파일: HttpClient.cs 프로젝트: dedels/Bunk
 private CouchResponse MakeResponse(CouchRepo couchRepo, WebResponse resp)
 {
     return(new CouchResponse(couchRepo)
     {
         Stream = resp.GetResponseStream(),
         ContentLength = resp.ContentLength,
         ContentType = resp.ContentType,
         Response = resp
     });
 }
예제 #4
0
 public UsersMaintenance(CouchRepo couchRepo) : base(couchRepo, "_users")
 {
 }
예제 #5
0
 public Authentication(CouchRepo couchRepo)
 {
     this.couchRepo = couchRepo;
 }
예제 #6
0
파일: HttpClient.cs 프로젝트: dedels/Bunk
 public CouchResponse(CouchRepo couchRepo)
 {
     this.couchRepo = couchRepo;
 }