Ejemplo n.º 1
0
        /// <summary>
        /// initialize a given pebble and add it to the viewers if successful
        /// </summary>
        /// <param name="pebble"></param>
        /// <param name="zip"></param>
        /// <param name="queueCommand"></param>
        /// <param name="configuration"></param>
        private void InitializeViewer(PebbleSharp.Core.Pebble pebble, PebbleSharp.Core.IZip zip, Action <Action <ISystemController, IRaceController> > queueCommand, PluginConfiguration configuration)
        {
            try
            {
                var viewer = new PebbleViewer(_logger, this, pebble, zip, queueCommand);

                _components.Add(viewer);
                configuration.DashboardViewers.Add(viewer);
            }
            catch (Exception ex)
            {
                _logger.Error("Failed to connect to pebble " + pebble.PebbleID, ex);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// initialize a given pebble and add it to the viewers if successful
        /// </summary>
        /// <param name="pebble"></param>
        /// <param name="zip"></param>
        /// <param name="queueCommand"></param>
        /// <param name="configuration"></param>
		private void InitializeViewer(PebbleSharp.Core.Pebble pebble,PebbleSharp.Core.IZip zip, Action<Action<ISystemController, IRaceController>> queueCommand,PluginConfiguration configuration)
		{
			try
			{
				var viewer = new PebbleViewer(_logger, this, pebble,zip,queueCommand);

				_components.Add(viewer);
				configuration.DashboardViewers.Add(viewer);
			}
			catch (Exception ex)
			{
				_logger.Error("Failed to connect to pebble "+pebble.PebbleID,ex);
			}
		}