Exemplo n.º 1
0
        public string Post([FromBody] string value)
        {
            //Request for car
            var id = new Random().Next(100, 199);

            var buildRequest = "B|" + id + "|" + value;

            ReadWriteQueue.SendBuildRequest(buildRequest);

            return(buildRequest);
        }
        public string Post([FromBody] string value)
        {
            //Request for car

            //store building the car in a permanent list

            var id = new Random().Next(100, 199);

            var newOrder = new CarOrder
            {
                Id   = id,
                Code = value
            };

            repo.CarOrders.Add(newOrder);

            var buildRequest = "B|" + id + "|" + value;

            ReadWriteQueue.SendBuildRequest(buildRequest);

            return(buildRequest);
        }
Exemplo n.º 3
0
 static void Main(string[] args)
 {
     ReadWriteQueue.SendMessage("test");
     ReadWriteQueue.ReadMessage();
 }