Skip to content
Uplusware edited this page Jan 26, 2022 · 9 revisions

Service Object can be used in local server wildly. For example, a mysql or mongodb connection.

The new Service Object class must be derived from the class IServiceObj defined in src/serviceobj.h.

class IServiceObj {
public:
    IServiceObj() { };
    void Destroy() { delete this; };
protected:
    virtual ~IServiceObj() = 0;
};

Note: It's not thread-safety.

Clone this wiki locally