Skip to content

app/integration/RpcContextFactory.hpp

More...

Namespaces

Name
sgns

Classes

Name
class sgns::RpcContextFactory

Detailed Description

Date: 2024-03-05 Henrique A. Klein ([email protected])

Source code

#ifndef _RPC_CONTEXT_FACTORY_HPP_
#define _RPC_CONTEXT_FACTORY_HPP_

#include "api/transport/rpc_io_context.hpp"

namespace sgns
{
    //TODO - replace boost::asio::io_context in other classes with this
    class RpcContextFactory
    {
        public:
        std::shared_ptr<api::RpcContext> create()
        {
            return std::make_shared<api::RpcContext>();
        }
    };
}

#endif

Updated on 2026-03-04 at 13:10:44 -0800