示例#1
0
        public RpcController(ILoggerFactory loggerFactory)
        {
            // Initialize logger
            this._logger = loggerFactory.CreateLogger <RpcController>();

            // Initialize RPC
            RPC.AddHanlder("TEST", new TestService(loggerFactory));
            RPC.AddHanlder("DBMS", new DBService());
        }
示例#2
0
 public void Setup()
 {
     RPC.AddHanlder("TEST", new TestService());
 }