Ejemplo n.º 1
0
        public HttpResponseMessage Post([FromBody] HsGameMessage message)
        {
            BusPublisher pub = new BusPublisher();

            pub.PublishMessage(message);
            pub.Dispose();
            return(Request.CreateResponse(HttpStatusCode.OK, "ok"));
        }
Ejemplo n.º 2
0
        public HttpResponseMessage Get()
        {
            BusPublisher pub = new BusPublisher();
            var          msg = new HsGameMessage(HSGameEventTypes.OnGameStart)
            {
                Data = null
            };

            pub.PublishMessage(msg);
            pub.Dispose();
            return(Request.CreateResponse(HttpStatusCode.OK, "ok"));
        }