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

            this._eventHubClient = messagingFactory.CreateEventHubClient(config.EventHubPath);
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 4
0
        public SimulationProfile(
            string hostName,
            int instanceCount,
            ISenderInstrumentationPublisher instrumentationPublisher,
            SimulatorConfiguration simulatorConfiguration)
        {
            _hostName = hostName;
            _instrumentationPublisher = instrumentationPublisher;
            _simulatorConfiguration = simulatorConfiguration;

            _carsPerInstance = simulatorConfiguration.NumberOfCars / instanceCount;
        }
 public static void WorkerRoleStartedWith(this ILogger logger, SimulatorConfiguration simulatorConfiguration)
 {
     logger.Info("Simulation started in worker role with SimulatorConfiguration: ", simulatorConfiguration);
 }
 public static void WorkerRoleStartedWith(this ILogger logger, SimulatorConfiguration simulatorConfiguration)
 {
     logger.Info("Simulation started in worker role with SimulatorConfiguration: ", simulatorConfiguration);
 }