コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the DeviceTelemetryLogic class.
        /// </summary>
        /// <param name="deviceTelemetryRepository">
        /// The IDeviceTelemetryRepository implementation that the new
        /// instance will use.
        /// </param>
        public DeviceTelemetryLogic(IDeviceTelemetryRepository deviceTelemetryRepository)
        {
            if (deviceTelemetryRepository == null)
            {
                throw new ArgumentNullException(nameof(deviceTelemetryRepository));
            }

            _deviceTelemetryRepository = deviceTelemetryRepository;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the DeviceTelemetryLogic class.
        /// </summary>
        /// <param name="deviceTelemetryRepository">
        /// The IDeviceTelemetryRepository implementation that the new 
        /// instance will use.
        /// </param>
        public DeviceTelemetryLogic(IDeviceTelemetryRepository deviceTelemetryRepository)
        {
            if (deviceTelemetryRepository == null)
            {
                throw new ArgumentNullException("deviceTelemetryRepository");
            }

            _deviceTelemetryRepository = deviceTelemetryRepository;
        }