Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }