public void Dispose()
        {
            RoleEnvironment.Changed -= RoleEnvironment_Changed;

            if (this.settingsDownloader != null)
            {
                this.settingsDownloader.Dispose();
                this.settingsDownloader = null;
            }
        }
Exemple #2
0
        public void Dispose()
        {
            RoleEnvironment.Changed -= RoleEnvironment_Changed;

            if (this.settingsDownloader != null)
            {
                this.settingsDownloader.Dispose();
                this.settingsDownloader = null;
            }
        }
Exemple #3
0
        internal OnlineTrainerSettingsWatcher(LearnEventProcessorHost trainProcessorHost)
        {
            this.telemetry          = new TelemetryClient();
            this.trainProcessorHost = trainProcessorHost;

            RoleEnvironment.Changed += RoleEnvironment_Changed;

            this.settingsDownloader             = new OnlineTrainerSettingsDownloader(TimeSpan.FromSeconds(5));
            this.settingsDownloader.Downloaded += AzureSettingsBlobDownloader_Downloaded;
            this.settingsDownloader.Failed     += AzureSettingsBlobDownloader_Failed;
        }
        internal OnlineTrainerSettingsWatcher(LearnEventProcessorHost trainProcessorHost)
        {
            this.telemetry = new TelemetryClient();
            this.trainProcessorHost = trainProcessorHost;

            RoleEnvironment.Changed += RoleEnvironment_Changed;

            this.settingsDownloader = new OnlineTrainerSettingsDownloader(TimeSpan.FromSeconds(5));
            this.settingsDownloader.Downloaded += AzureSettingsBlobDownloader_Downloaded;
            this.settingsDownloader.Failed += AzureSettingsBlobDownloader_Failed;
        }