예제 #1
0
파일: Client.cs 프로젝트: RhysC/mycouch
        public Client(IConnection connection, ClientBootsraper bootstraper = null)
        {
            Ensure.That(connection, "connection").IsNotNull();

            Connection = connection;

            bootstraper = bootstraper ?? new ClientBootsraper();

            Serializer  = bootstraper.SerializerFn();
            Attachments = bootstraper.AttachmentsFn(Connection);
            Databases   = bootstraper.DatabasesFn(Connection);
            Documents   = bootstraper.DocumentsFn(Connection);
            Entities    = bootstraper.EntitiesFn(Connection);
            Views       = bootstraper.ViewsFn(Connection);
        }
예제 #2
0
파일: Client.cs 프로젝트: RhysC/mycouch
        public Client(IConnection connection, ClientBootsraper bootstraper = null)
        {
            Ensure.That(connection, "connection").IsNotNull();

            Connection = connection;

            bootstraper = bootstraper ?? new ClientBootsraper();

            Serializer = bootstraper.SerializerFn();
            Attachments = bootstraper.AttachmentsFn(Connection);
            Databases = bootstraper.DatabasesFn(Connection);
            Documents = bootstraper.DocumentsFn(Connection);
            Entities = bootstraper.EntitiesFn(Connection);
            Views = bootstraper.ViewsFn(Connection);
        }