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

            if (_wmiHelper == null)
            {
                _wmiHelper = new WmiHelper();
            }
            _azureServiceBusWriter = new AzureServiceBusWriter();
        }
Beispiel #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();
        }
 public TelemetryWriter()
 {
     _helper    = new SystemHelper();
     _wmihelper = new WmiHelper();
     Storage    = new AzureTableWriter();
 }