Ejemplo n.º 1
0
        public async Task StatisticsTest()
        {
            var statisticalSvc = new FbStatistical();

            statisticalSvc.ConnectionString = BuildServicesConnectionString(ServerType, Compression, WireCrypt, true);
            statisticalSvc.Options          = FbStatisticalFlags.SystemTablesRelations;
            statisticalSvc.ServiceOutput   += ServiceOutput;
            await statisticalSvc.ExecuteAsync();
        }
Ejemplo n.º 2
0
        public void StatisticsTest()
        {
            FbStatistical statisticalSvc = new FbStatistical();

            statisticalSvc.ConnectionString = BuildServicesConnectionString();
            statisticalSvc.Options          = FbStatisticalFlags.SystemTablesRelations;

            statisticalSvc.ServiceOutput += ServiceOutput;

            statisticalSvc.Execute();
        }
Ejemplo n.º 3
0
        public void StatisticsTest()
        {
            var statisticalSvc = new FbStatistical();

            statisticalSvc.ConnectionString = BuildServicesConnectionString(FbServerType, Compression, true);
            statisticalSvc.Options          = FbStatisticalFlags.SystemTablesRelations;

            statisticalSvc.ServiceOutput += ServiceOutput;

            statisticalSvc.Execute();
        }
Ejemplo n.º 4
0
        public void StatisticsWithEncryptedTest()
        {
            var csb = BuildServicesConnectionStringBuilder(ServerType, Compression, WireCrypt, true);

            csb.Database = "enc.fdb";
            Task Test()
            {
                var statisticalSvc = new FbStatistical(csb.ToString());

                statisticalSvc.ServiceOutput += ServiceOutput;
                return(statisticalSvc.ExecuteAsync());
            }

            Assert.ThrowsAsync <FbException>(Test);
            csb.CryptKey = Encoding.ASCII.GetBytes("1234567890123456");
            Assert.DoesNotThrowAsync(Test);
        }