示例#1
0
        internal void Init(IRollbarTelemetryOptions options)
        {
            if (this._config != null)
            {
                this.StopAutocollection(false);
                this.FlushQueue();
                this._config.Reconfigured -= _config_Reconfigured;
            }

            this._config = options;

            if (this._config != null)
            {
                this._config.Reconfigured += _config_Reconfigured;
                this.StartAutocollection();
            }
        }
示例#2
0
        internal void Init(IRollbarTelemetryOptions options)
        {
            if (this._config != null)
            {
                this.StopAutocollection(false);
                this.FlushQueue();
                this._config.Reconfigured -= _config_Reconfigured;
            }

            this._config = options;

            if (this._config != null)
            {
                // let's resync with relevant config settings:
                this._telemetryQueue.QueueDepth = this._config.TelemetryQueueDepth;

                this._config.Reconfigured += _config_Reconfigured;
                this.StartAutocollection();
            }
            else
            {
                this._telemetryQueue.QueueDepth = 0;
            }
        }