public IList<StatusItem> ReportStatus()
        {
            var statusItem = new StatusItem("__NAME__.MessageBus.Client");
            var client = _container.GetInstance<DiagnosticsSender>();

            // Try sending a message
            try
            {
                client.Ping("__NAME__.Api");
                statusItem.Status = StatusItem.OK;
            }
            catch (Exception e)
            {
                statusItem.Status = StatusItem.Error;
                statusItem.Comment = e.Message;
            }
                
            return new []{statusItem};
        }
        public IList<StatusItem> ReportStatus()
        {
            var statusItem = new StatusItem("__NAME__.Domain.Persistence");
            var repo = new MigrationsRepository(_unitOfWork);

            //Try sending a messages
            try
            {
                var lastMigration = repo.LastMigration;
                statusItem.Comment = String.Format("Last migration {0}", lastMigration);
                statusItem.Status = StatusItem.OK;
            }
            catch (Exception e)
            {
                statusItem.Status = StatusItem.Error;
                statusItem.Comment = e.Message;
            }

            return new[] { statusItem };
        }