public override void Dispose()
 {
     base.Dispose();
     var dataManager = new AzureTableDataManager<TableEntity>(CheckpointerSettings.TableName, CheckpointerSettings.DataConnectionString, NullLoggerFactory.Instance);
     dataManager.InitTableAsync().Wait();
     dataManager.ClearTableAsync().Wait();
 }
Example #2
0
        private async Task CreateTable()
        {
            var tableManager = new AzureTableDataManager <TableEntity>(this.options.TableName, this.options.ConnectionString, this.loggerFactory);
            await tableManager.InitTableAsync().ConfigureAwait(false);

            this.table = tableManager.Table;
        }
Example #3
0
        public static async Task DeleteAll()
        {
            var dataManager = new AzureTableDataManager <TableEntity>(TableName, TestDefaultConfiguration.DataConnectionString);
            await dataManager.InitTableAsync();

            await dataManager.DeleteTableAsync();
        }
Example #4
0
        public static async Task DeleteAll()
        {
            var dataManager = new AzureTableDataManager <TableEntity>(TableName, StorageTestConstants.DataConnectionString);
            await dataManager.InitTableAsync();

            await dataManager.DeleteTableAsync();
        }
 public override void Dispose()
 {
     var dataManager = new AzureTableDataManager<TableEntity>(CheckpointerSettings.TableName, CheckpointerSettings.DataConnectionString);
     dataManager.InitTableAsync().Wait();
     dataManager.ClearTableAsync().Wait();
     base.Dispose();
 }
        public static async Task DeleteAll()
        {
            var dataManager = new AzureTableDataManager <TableEntity>(TableName, TestDefaultConfiguration.DataConnectionString, NullLoggerFactory.Instance.CreateLogger <AzureTableDataManager <TableEntity> >());
            await dataManager.InitTableAsync();

            await dataManager.DeleteTableAsync();
        }
Example #7
0
 public override void Dispose()
 {
     base.Dispose();
     var dataManager = new AzureTableDataManager<TableEntity>(CheckpointerSettings.TableName, CheckpointerSettings.DataConnectionString);
     dataManager.InitTableAsync().Wait();
     dataManager.ClearTableAsync().Wait();
     TestAzureTableStorageStreamFailureHandler.DeleteAll().Wait();
 }
            public override void Dispose()
            {
                var dataManager = new AzureTableDataManager <TableEntity>(CheckpointSettings.TableName, CheckpointSettings.DataConnectionString);

                dataManager.InitTableAsync().Wait();
                dataManager.DeleteTableAsync().Wait();
                base.Dispose();
            }
            public override void Dispose()
            {
                base.Dispose();
                var dataManager = new AzureTableDataManager <TableEntity>(EHCheckpointTable, TestDefaultConfiguration.DataConnectionString, NullLoggerFactory.Instance);

                dataManager.InitTableAsync().Wait();
                dataManager.ClearTableAsync().Wait();
            }
Example #10
0
        public override void Dispose()
        {
            base.Dispose();
            var dataManager = new AzureTableDataManager <TableEntity>(CheckpointerSettings.TableName, CheckpointerSettings.DataConnectionString);

            dataManager.InitTableAsync().Wait();
            dataManager.ClearTableAsync().Wait();
            TestAzureTableStorageStreamFailureHandler.DeleteAll().Wait();
        }
Example #11
0
 public override void Dispose()
 {
     base.Dispose();
     if (!isSkippable)
     {
         var dataManager = new AzureTableDataManager <TableEntity>(CheckpointerSettings.TableName, CheckpointerSettings.DataConnectionString);
         dataManager.InitTableAsync().Wait();
         dataManager.ClearTableAsync().Wait();
     }
 }
Example #12
0
        public static async Task DeleteAll()
        {
            var dataManager = new AzureTableDataManager <TableEntity>(
                new AzureStorageOperationOptions {
                TableName = TableName
            }.ConfigureTestDefaults(),
                NullLoggerFactory.Instance.CreateLogger <AzureTableDataManager <TableEntity> >());
            await dataManager.InitTableAsync();

            await dataManager.DeleteTableAsync();
        }
        async Task IClientMetricsDataPublisher.Init(ClientConfiguration config, IPAddress address, string clientId)
        {
            deploymentId = config.DeploymentId;
            this.clientId = clientId;
            this.address = address;
            myHostName = config.DNSHostName;
            storage = new AzureTableDataManager<ClientMetricsData>(
                INSTANCE_TABLE_NAME, config.DataConnectionString, logger);

            await storage.InitTableAsync().WithTimeout(initTimeout);
        }
Example #14
0
        public static async Task <int> GetDeliveryFailureCount(string streamProviderName)
        {
            var dataManager = new AzureTableDataManager <TableEntity>(TableName, TestDefaultConfiguration.DataConnectionString);

            dataManager.InitTableAsync().Wait();
            IEnumerable <Tuple <TableEntity, string> > deliveryErrors =
                await
                dataManager.ReadAllTableEntriesForPartitionAsync(
                    StreamDeliveryFailureEntity.MakeDefaultPartitionKey(streamProviderName, DeploymentId));

            return(deliveryErrors.Count());
        }
Example #15
0
 async Task IStatisticsPublisher.Init(bool isSilo, string storageConnectionString, string deploymentId, string address, string siloName, string hostName)
 {
     this.deploymentId = deploymentId;
     this.address = address;
     name = siloName;
     myHostName = hostName;
     this.isSilo = isSilo;
     if (!this.isSilo)
     {
         clientEpoch = SiloAddress.AllocateNewGeneration();
     }
     counter = 0;
     var tableName = isSilo ? "OrleansSiloStatistics" : "OrleansClientStatistics";
     tableManager = new AzureTableDataManager<StatsTableData>(tableName, storageConnectionString, logger);
     await tableManager.InitTableAsync().WithTimeout(initTimeout);
 }
Example #16
0
        public static async Task <int> GetDeliveryFailureCount(string streamProviderName, ILoggerFactory loggerFactory)
        {
            var dataManager = new AzureTableDataManager <TableEntity>(
                new AzureStorageOperationOptions {
                TableName = TableName
            }.ConfigureTestDefaults(),
                loggerFactory.CreateLogger <AzureTableDataManager <TableEntity> >());
            await dataManager.InitTableAsync();

            IEnumerable <Tuple <TableEntity, string> > deliveryErrors =
                await
                dataManager.ReadAllTableEntriesForPartitionAsync(
                    StreamDeliveryFailureEntity.MakeDefaultPartitionKey(streamProviderName, DeploymentId));

            return(deliveryErrors.Count());
        }
Example #17
0
 private Task Initialize()
 {
     return(dataManager.InitTableAsync());
 }
 public async Task Init(string deploymentId, string storageConnectionString, SiloAddress siloAddress, string siloName, IPEndPoint gateway, string hostName)
 {
     this.deploymentId = deploymentId;
     this.siloAddress = siloAddress;
     this.siloName = siloName;
     this.gateway = gateway;
     myHostName = hostName;
     storage = new AzureTableDataManager<SiloMetricsData>( INSTANCE_TABLE_NAME, storageConnectionString, logger);
     await storage.InitTableAsync().WithTimeout(initTimeout);
 }
Example #19
0
 public Task InitTableAsync()
 {
     return(tableManager.InitTableAsync());
 }
Example #20
0
 /// <summary>
 /// Initialization
 /// </summary>
 /// <returns></returns>
 public Task InitAsync()
 {
     return(dataManager.InitTableAsync());
 }