//// Copyright (c) 2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)//#include "shared_state.hpp"#include <boost/asio/any_io_executor.hpp>#include <memory>#include "services/cookie_auth_service.hpp"#include "services/mysql_client.hpp"#include "services/pubsub_service.hpp"#include "services/redis_client.hpp"using namespace chat;shared_state::shared_state(std::string doc_root, boost::asio::any_io_executor ex): impl_{std::move(doc_root),create_redis_client(ex),create_mysql_client(ex),std::make_unique<cookie_auth_service>(redis(), mysql()),create_pubsub_service(ex),}{}shared_state::shared_state(shared_state&& rhs) noexcept : impl_(std::move(rhs.impl_)) {}shared_state& shared_state::operator=(shared_state&& rhs) noexcept{impl_ = std::move(rhs.impl_);return *this;}shared_state::~shared_state() {}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。