public FeedbackEventProcessor(
     ILifetimeScope lifetimeScope,
     ILocationJerkLogic locationJerkLogic)
 {
     _configurationProvider = lifetimeScope.Resolve <IConfigurationProvider>();
     _locationJerkLogic     = locationJerkLogic;
 }
 public FeedbackProcessorFactory(
     ILocationJerkLogic locationJerkLogic,
     IConfigurationProvider configurationProvider)
 {
     _locationJerkLogic     = locationJerkLogic;
     _configurationProvider = configurationProvider;
 }
Esempio n. 3
0
        public FeedbackProcessor(
            ILocationJerkLogic locationJerkLogic,
            IConfigurationProvider configurationProvider)
        {
            this.LastMessageOffset = "-1";
            var iotHubConnectionString = configurationProvider.GetConfigurationSettingValue("iotHub.ConnectionString");

            _locationJerkLogic = locationJerkLogic;
            _serviceClient     = ServiceClient.CreateFromConnectionString(iotHubConnectionString);
        }
 public ActionProcessorFactory(
     IActionLogic actionLogic,
     ILocationJerkLogic locationJerkLogic,
     IActionMappingLogic actionMappingLogic,
     IConfigurationProvider configurationProvider)
 {
     _actionLogic           = actionLogic;
     _locationJerkLogic     = locationJerkLogic;
     _actionMappingLogic    = actionMappingLogic;
     _configurationProvider = configurationProvider;
 }
 public ActionEventProcessor(
     ILifetimeScope lifetimeScope,
     IActionLogic actionLogic,
     ILocationJerkLogic locationJerkLogic,
     IActionMappingLogic actionMappingLogic)
 {
     _configurationProvider = lifetimeScope.Resolve <IConfigurationProvider>();
     _actionLogic           = actionLogic;
     _locationJerkLogic     = locationJerkLogic;
     _actionMappingLogic    = actionMappingLogic;
 }
Esempio n. 6
0
 public ActionProcessor(
     IActionLogic actionLogic,
     ILocationJerkLogic locationJerkLogic,
     IActionMappingLogic actionMappingLogic,
     IConfigurationProvider configurationProvider)
 {
     this.LastMessageOffset = "-1";
     _actionLogic           = actionLogic;
     _actionMappingLogic    = actionMappingLogic;
     _configurationProvider = configurationProvider;
     _locationJerkLogic     = locationJerkLogic;
 }
Esempio n. 7
0
        /// <summary>
        /// Initializes a new instance of the TelemetryApiController class.
        /// </summary>
        /// <param name="deviceTelemetryLogic">
        /// The IDeviceRegistryListLogic implementation that the new instance
        /// will use.
        /// </param>
        /// <param name="alertsLogic">
        /// The IAlertsLogic implementation that the new instance will use.
        /// </param>
        /// <param name="deviceLogic">
        /// The IDeviceLogic implementation that the new instance will use.
        /// </param>
        public TelemetryApiController(
            IDeviceTelemetryLogic deviceTelemetryLogic,
            IAlertsLogic alertsLogic,
            IDeviceLogic deviceLogic,
            ILocationJerkLogic locationJerkLogic,
            IConfigurationProvider configProvider)
        {
            if (deviceTelemetryLogic == null)
            {
                throw new ArgumentNullException("deviceTelemetryLogic");
            }

            if (alertsLogic == null)
            {
                throw new ArgumentNullException("alertsLogic");
            }

            if (deviceLogic == null)
            {
                throw new ArgumentNullException("deviceLogic");
            }

            if (locationJerkLogic == null)
            {
                throw new ArgumentNullException("locationJerkLogic");
            }

            if (configProvider == null)
            {
                throw new ArgumentNullException("configProvider");
            }

            _deviceTelemetryLogic = deviceTelemetryLogic;
            _alertsLogic          = alertsLogic;
            _deviceLogic          = deviceLogic;
            _locationJerkLogic    = locationJerkLogic;
            _configProvider       = configProvider;
        }
Esempio n. 8
0
 public LocationController(ILocationJerkLogic locationJerkLogic, ILocationRulesLogic locationRulesLogic)
 {
     this._locationJerkLogic  = locationJerkLogic;
     this._locationRulesLogic = locationRulesLogic;
 }
Esempio n. 9
0
 public LocationApiController(ILocationJerkLogic locationJerkLogic)
 {
     this._locationJerkLogic = locationJerkLogic;
 }