Example #1
0
        public TelemetryWriter(bool permissionGranted)
        {
            _permissionGranted = permissionGranted;
            if (_helper == null)
            {
                _helper = new SystemHelper();
            }

            if (_wmiHelper == null)
            {
                _wmiHelper = new WmiHelper();
            }
            _azureServiceBusWriter = new AzureServiceBusWriter();
        }
Example #2
0
        public TelemetryWriter(bool permissionGranted, SystemHelper helper)
        {
            _permissionGranted = permissionGranted;

            _helper = helper;

            if (_helper == null)
            {
                Debugger.Break();
            }

            if (_wmiHelper == null)
            {
                _wmiHelper = new WmiHelper();
            }
            _azureServiceBusWriter = new AzureServiceBusWriter();
        }