Service Object

Uplusware edited this page Jan 25, 2018 · 7 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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.