bmcweb: Replace deprecated boost::asio::io_service

bmcweb will not build when boost library is version 1.71.0.
Also fix code format.

In CMakeLists.txt
271 if ("${Boost_VERSION}" STREQUAL "107100")
272     add_definitions (-DBOOST_ASIO_NO_DEPRECATED)
273 endif ()

Signed-off-by: Zhenfei Tai <ztai@google.com>
Change-Id: I4ebbf3cfcfd767ea016b4efd19704d25b845f86c
diff --git a/redfish-core/include/event_service_manager.hpp b/redfish-core/include/event_service_manager.hpp
index e94bbed..faf093d 100644
--- a/redfish-core/include/event_service_manager.hpp
+++ b/redfish-core/include/event_service_manager.hpp
@@ -21,6 +21,7 @@
 
 #include <sys/inotify.h>
 
+#include <boost/asio/io_context.hpp>
 #include <boost/container/flat_map.hpp>
 #include <cstdlib>
 #include <ctime>
@@ -983,7 +984,7 @@
             });
     }
 
-    static int startEventLogMonitor(boost::asio::io_service& ioc)
+    static int startEventLogMonitor(boost::asio::io_context& ioc)
     {
         inotifyConn =
             std::make_shared<boost::asio::posix::stream_descriptor>(ioc);