Modify D-Bus to using asio server

DBus updates are now using the asio server way.

Tested:
Tested with unit tests and locally on a machine.

Signed-off-by: Kasun Athukorala <kasunath@google.com>
Change-Id: I77553bcc3baae70e5d684a62f2c19592ff844665
Signed-off-by: Brandon Kim <brandonkim@google.com>
diff --git a/include/rde/notifier_dbus_handler.hpp b/include/rde/notifier_dbus_handler.hpp
index e90fa71..708a45a 100644
--- a/include/rde/notifier_dbus_handler.hpp
+++ b/include/rde/notifier_dbus_handler.hpp
@@ -2,6 +2,8 @@
 
 #include "dbus/file_notifier.hpp"
 
+#include <sdbusplus/asio/object_server.hpp>
+
 #include <memory>
 #include <vector>
 
@@ -19,9 +21,10 @@
     /**
      * @brief Constructor for the CperFileNotifierHandler class.
      *
-     * @param bus - bus to attache to.
+     * @param conn - sdbusplus asio connection.
      */
-    explicit CperFileNotifierHandler(sdbusplus::bus_t& bus);
+    explicit CperFileNotifierHandler(
+        const std::shared_ptr<sdbusplus::asio::connection>& conn);
 
     /**
      * @brief Create a DBus object with the provided filePath value.
@@ -31,8 +34,8 @@
     void createEntry(const std::string& filePath);
 
   private:
-    sdbusplus::bus_t& bus;
     sdbusplus::server::manager_t objManager;
+    sdbusplus::asio::object_server objServer;
 
     /**
      * @brief A vector to keep track of DBus FilePath objects.