public MyCouchServerClient(ServerConnectionInfo connectionInfo, MyCouchClientBootstrapper bootstrapper = null)
        {
            Ensure.That(connectionInfo, "connectionInfo").IsNotNull();

            IsDisposed   = false;
            bootstrapper = bootstrapper ?? MyCouchClientBootstrappers.Default;

            Connection = bootstrapper.ServerConnectionFn(connectionInfo);
            Serializer = bootstrapper.SerializerFn();
            Databases  = bootstrapper.DatabasesFn(Connection);
            Replicator = bootstrapper.ReplicatorFn(Connection);
        }
Esempio n. 2
0
        public MyCouchServerClient(IServerClientConnection connection, MyCouchClientBootstrapper bootstrapper = null)
        {
            Ensure.That(connection, "connection").IsNotNull();

            Connection = connection;

            bootstrapper = bootstrapper ?? new MyCouchClientBootstrapper();

            Serializer = bootstrapper.SerializerFn();
            Databases = bootstrapper.DatabasesFn(Connection);
            Replicator = bootstrapper.ReplicatorFn(Connection);
            IsDisposed = false;
        }
Esempio n. 3
0
        public MyCouchServerClient(IServerClientConnection connection, MyCouchClientBootstrapper bootstrapper = null)
        {
            Ensure.That(connection, "connection").IsNotNull();

            Connection = connection;

            bootstrapper = bootstrapper ?? new MyCouchClientBootstrapper();

            Serializer = bootstrapper.SerializerFn();
            Databases  = bootstrapper.DatabasesFn(Connection);
            Replicator = bootstrapper.ReplicatorFn(Connection);
            IsDisposed = false;
        }
Esempio n. 4
0
        public MyCouchClient(DbConnectionInfo connectionInfo, MyCouchClientBootstrapper bootstrapper = null)
        {
            Ensure.That(connectionInfo, "connectionInfo").IsNotNull();

            IsDisposed   = false;
            bootstrapper = bootstrapper ?? MyCouchClientBootstrappers.Default;

            Connection         = bootstrapper.DbConnectionFn(connectionInfo);
            Serializer         = bootstrapper.SerializerFn();
            DocumentSerializer = bootstrapper.DocumentSerializerFn();
            Changes            = bootstrapper.ChangesFn(Connection);
            Attachments        = bootstrapper.AttachmentsFn(Connection);
            Database           = bootstrapper.DatabaseFn(Connection);
            Documents          = bootstrapper.DocumentsFn(Connection);
            Entities           = bootstrapper.EntitiesFn(Connection);
            Views = bootstrapper.ViewsFn(Connection);
        }
Esempio n. 5
0
        public MyCouchClient(DbConnectionInfo connectionInfo, MyCouchClientBootstrapper bootstrapper = null)
        {
            Ensure.That(connectionInfo, "connectionInfo").IsNotNull();

            IsDisposed = false;
            bootstrapper = bootstrapper ?? MyCouchClientBootstrappers.Default;

            Connection = bootstrapper.DbConnectionFn(connectionInfo);
            Serializer = bootstrapper.SerializerFn();
            DocumentSerializer = bootstrapper.DocumentSerializerFn();
            Changes = bootstrapper.ChangesFn(Connection);
            Attachments = bootstrapper.AttachmentsFn(Connection);
            Database = bootstrapper.DatabaseFn(Connection);
            Documents = bootstrapper.DocumentsFn(Connection);
            Entities = bootstrapper.EntitiesFn(Connection);
            Views = bootstrapper.ViewsFn(Connection);
        }
Esempio n. 6
0
        public MyCouchClient(IDbClientConnection connection, MyCouchClientBootstrapper bootstrapper = null)
        {
            Ensure.That(connection, "connection").IsNotNull();

            Connection = connection;

            bootstrapper = bootstrapper ?? new MyCouchClientBootstrapper();

            Serializer = bootstrapper.SerializerFn();
            DocumentSerializer = bootstrapper.DocumentSerializerFn();
            Changes = bootstrapper.ChangesFn(Connection);
            Attachments = bootstrapper.AttachmentsFn(Connection);
            Database = bootstrapper.DatabaseFn(Connection);
            Documents = bootstrapper.DocumentsFn(Connection);
            Entities = bootstrapper.EntitiesFn(Connection);
            Views = bootstrapper.ViewsFn(Connection);
            IsDisposed = false;
        }
Esempio n. 7
0
        public MyCouchClient(IDbClientConnection connection, MyCouchClientBootstrapper bootstrapper = null)
        {
            Ensure.That(connection, "connection").IsNotNull();

            Connection = connection;

            bootstrapper = bootstrapper ?? new MyCouchClientBootstrapper();

            Serializer         = bootstrapper.SerializerFn();
            DocumentSerializer = bootstrapper.DocumentSerializerFn();
            Changes            = bootstrapper.ChangesFn(Connection);
            Attachments        = bootstrapper.AttachmentsFn(Connection);
            Database           = bootstrapper.DatabaseFn(Connection);
            Documents          = bootstrapper.DocumentsFn(Connection);
            Entities           = bootstrapper.EntitiesFn(Connection);
            Views      = bootstrapper.ViewsFn(Connection);
            IsDisposed = false;
        }
Esempio n. 8
0
 public MyCouchClient(Uri serverAddress, string dbName, MyCouchClientBootstrapper bootstrapper = null)
     : this(new DbConnectionInfo(serverAddress, dbName), bootstrapper)
 {
 }
Esempio n. 9
0
 public MyCouchClient(string serverAddress, string dbName, MyCouchClientBootstrapper bootstrapper = null)
     : this(new Uri(serverAddress), dbName, bootstrapper)
 {
 }
Esempio n. 10
0
 static MyCouchClientBootstrappers()
 {
     Default = new MyCouchClientBootstrapper();
 }
Esempio n. 11
0
 static MyCouchClientBootstrappers()
 {
     Default = new MyCouchClientBootstrapper();
 }
Esempio n. 12
0
 public MyCouchServerClient(Uri serverAddress, MyCouchClientBootstrapper bootstrapper = null)
     : this(new ServerConnectionInfo(serverAddress), bootstrapper)
 {
 }
Esempio n. 13
0
 public MyCouchClient(Uri serverAddress, string dbName, MyCouchClientBootstrapper bootstrapper = null)
     : this(new DbConnectionInfo(serverAddress, dbName), bootstrapper) { }
Esempio n. 14
0
 public MyCouchClient(string serverAddress, string dbName, MyCouchClientBootstrapper bootstrapper = null)
     : this(new Uri(serverAddress), dbName, bootstrapper) { }