public MessageSender(
            MessagingFactory messagingFactory,
            SimulatorConfiguration config,
            Func<object, byte[]> serializer,
            ISenderInstrumentationPublisher telemetryPublisher)
        {
            this._serializer = serializer;
            this._instrumentationTelemetryPublisher = telemetryPublisher;

            this._eventHubClient = messagingFactory.CreateEventHubClient(config.EventHubPath);
        }
        public MessageSender(
            MessagingFactory messagingFactory,
            SimulatorConfiguration config,
            Func <object, byte[]> serializer,
            ISenderInstrumentationPublisher telemetryPublisher)
        {
            this._serializer = serializer;
            this._instrumentationTelemetryPublisher = telemetryPublisher;

            this._eventHubClient = messagingFactory.CreateEventHubClient(config.EventHubPath);
        }
        public SimulationProfile(
            string hostName,
            int instanceCount,
            ISenderInstrumentationPublisher instrumentationPublisher,
            SimulatorConfiguration simulatorConfiguration)
        {
            _hostName = hostName;
            _instrumentationPublisher = instrumentationPublisher;
            _simulatorConfiguration   = simulatorConfiguration;

            _carsPerInstance = simulatorConfiguration.NumberOfCars / instanceCount;
        }
        public SimulationProfile(
            string hostName,
            int instanceCount,
            ISenderInstrumentationPublisher instrumentationPublisher,
            SimulatorConfiguration simulatorConfiguration)
        {
            _hostName = hostName;
            _instrumentationPublisher = instrumentationPublisher;
            _simulatorConfiguration = simulatorConfiguration;

            _carsPerInstance = simulatorConfiguration.NumberOfCars / instanceCount;
        }