Пример #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
 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
 public CouchResponse(CouchRepo couchRepo)
 {
     this.couchRepo = couchRepo;
 }