예제 #1
0
        public Task <HttpResponseMessage> ProduceLogs()
        {
            return(Storytelling.Factory.StartNewAsync("ProduceLogs", async() =>
            {
                var str = await _fooService.GetRandomString();
                Storytelling.Debug("This is a debug message {0}", str);
                str = await _fooService.GetRandomString();
                Storytelling.Info("This is a information message {0}", str);
                str = await _fooService.GetRandomString();
                Storytelling.Warn("This is a warning message {0}", str);

                return Request.CreateResponse(HttpStatusCode.Created, "logs created");
            }));
        }