直入正题,C++SDK代码片段如下:
namespace Nsdk {
struct SDK_PUBLIC Factory
{
static IManageSession *createManageSession(const uint32_t ip, const uint16_t port,const char *username,const char *password);
};
interface SDK_PUBLIC IManageSession
{
virtual bool init() = 0;
virtual bool fini() = 0;
virtual bool login() = 0;
virtual bool logout() = 0;
protected:
virtual ~IManageSession() {};
};
}
接口调用流程如图:
用C#怎么写接口定义以及接口调用流程的代码,求大神打救,感激不尽~