コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the<see cref="AlertRuleStore"/> class.
        /// </summary>
        /// <param name="storageProviderFactory">The Azure Storage provider factory</param>
        /// <param name="tracer">Log wrapper</param>
        public AlertRuleStore(ICloudStorageProviderFactory storageProviderFactory, ITracer tracer)
        {
            this.tracer = tracer;

            // create the cloud table instance
            ICloudTableClientWrapper tableClient = storageProviderFactory.GetSmartDetectorStorageTableClient();

            this.alertRulesTable = tableClient.GetTableReference(TableName);
            this.alertRulesTable.CreateIfNotExists();
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the<see cref="SignalRunsTracker"/> class.
        /// </summary>
        /// <param name="storageProviderFactory">The Azure Storage provider factory</param>
        /// <param name="tracer">Log wrapper</param>
        public SignalRunsTracker(ICloudStorageProviderFactory storageProviderFactory, ITracer tracer)
        {
            this.tracer = tracer;

            // create the cloud table instance
            ICloudTableClientWrapper tableClient = storageProviderFactory.GetSmartSignalStorageTableClient();

            this.trackingTable = tableClient.GetTableReference(TableName);
            this.trackingTable.CreateIfNotExists();
        }