示例#1
0
        public override void SetUp()
        {
            Db4oPerformanceCounterInstaller.ReInstall();

            IServerConfiguration serverConfiguration = Db4oClientServer.NewServerConfiguration();

            serverConfiguration.AddConfigurationItem(new ClientConnectionsMonitoringSupport());
            serverConfiguration.AddConfigurationItem(new ConnectionCloseEventSupport(ClientDisconnected));

            _server = Db4oClientServer.OpenServer(serverConfiguration, TempFile(), Db4oClientServer.ArbitraryPort);
            _server.GrantAccess(UserName, Password);
        }
 protected override void Db4oSetupBeforeConfigure()
 {
     Db4oPerformanceCounterInstaller.ReInstall();
 }