Пример #1
0
        public static void CreateCar([ServiceBusTrigger("%ServiceBusQueueName%", Connection = "ServiceBusConnectionString")] string createCar, ILogger log, [Inject] IServiceBusClient busClient)
        {
            var car = JsonConvert.DeserializeObject <CreateCar>(createCar);

            busClient.PublishMessageToTopic(new CarCreated(car.Car));
        }