Exemplo n.º 1
0
        private void InitialSetup(string tableName, bool useHttps, int viewId, bool convertXStoreTableMode, int numberOfBlobs)
        {
            this.configurationInfos = this.GetRTableConfigurationLocationInfo(numberOfBlobs);

            this.configurationService = new ReplicatedTableConfigurationServiceV2(this.configurationInfos, this.connectionStringMap, useHttps);

            this.UploadRTableConfigToBlob(viewId, convertXStoreTableMode, numberOfBlobs);

            this.configurationWrapper = new ReplicatedTableConfigurationV2Wrapper(tableName, this.configurationService);
            this.configurationWrapper.SetLockTimeout(TimeSpan.FromSeconds(TestLockTimeoutInSeconds));
        }
Exemplo n.º 2
0
        public StopWatchInternal(string tableName, string context, IReplicatedTableConfigurationWrapper replicatedTableConfigurationWrapper)
        {
            this._tableName = tableName;
            this._context   = context;

            if (replicatedTableConfigurationWrapper.IsIntrumentationEnabled())
            {
                ReplicatedTableLogger.LogVerbose("[Instrumentation] {0}:{1} started", _tableName, _context);

                _stopWatch = Stopwatch.StartNew();
            }
        }