public PropertyBag(EventType eventType, IErrorStore errorStore)
 {
     _errorStore = errorStore;
     _contents   = new PropertyBagContents(eventType);
     SetErrorType(eventType);
     _count = 1;
 }
示例#2
0
        public ErrorHandler(IErrorStore errorStore, Assembly assembly)
        {
            _errorStore      = errorStore;
            _applicationName = assembly.GetName().Name;

            if (assembly.Location == null)
            {
                return;
            }

            var fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);

            _applicationVersion = fileVersionInfo.FileVersion;
        }
        private TelemetryClient(
            IApplicationConfiguration applicationConfiguration,
            IPlatformProxy platformProxy,
            IErrorStore errorStore,
            IUploader uploader,
            IActionStore actionStore,
            IScenarioStore scenarioStore,
            ContextStore contextStore,
            bool isScenarioUploadDisabled)
        {
            TelemetryManager = new TelemetryManager(applicationConfiguration, platformProxy, ProcessTelemetryCallback);

            _errorStore               = errorStore;
            _uploader                 = uploader;
            _actionStore              = actionStore;
            _scenarioStore            = scenarioStore;
            _contextStore             = contextStore;
            _isScenarioUploadDisabled = isScenarioUploadDisabled;
        }
        public ActionStore(
            int maxActionDurationMillis,
            int maxAggregationDurationMillis,
            IErrorStore errorStore,
            IEventFilter eventFilter,
            HashSet <string> telemetryAllowedScopes)
        {
            _maxActionDurationMillis      = maxActionDurationMillis;
            _maxAggregationDurationMillis = maxAggregationDurationMillis;
            _errorStore  = errorStore;
            _eventFilter = eventFilter;

            if (telemetryAllowedScopes != null)
            {
                foreach (string s in telemetryAllowedScopes)
                {
                    _telemetryAllowedScopes.Add(s);
                }
            }
        }
示例#5
0
 public ScenarioStore(int maxInactiveScenarioDurationMillis, IErrorStore errorStore)
 {
     _scenarioIdToPropertyBag           = new Dictionary <string, ScenarioHolder>();
     _maxInactiveScenarioDurationMillis = maxInactiveScenarioDurationMillis;
     _errorStore = errorStore;
 }
 public void Append(IErrorStore errorStore) => throw new NotImplementedException();
示例#7
0
 public ActionPropertyBag(IErrorStore errorStore) : base(EventType.Action, errorStore)
 {
 }
示例#8
0
 public ErrorHandler(IErrorStore errorStore, string applicationName, string applicationVersion)
 {
     _errorStore         = errorStore;
     _applicationName    = applicationName;
     _applicationVersion = applicationVersion;
 }