Browse Source

add masterInteractionCenterService

MIke 2 years ago
parent
commit
1488161013
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/WingServer.cs

+ 4 - 2
src/WingServer.cs

@@ -98,7 +98,9 @@ namespace WingCloudServer
             {
                 if(ConfigurationManager.IsMaster)
                 {
-                    _rpcHttpServer.RegisterService(typeof(IMasterInteractionCenterService), new MasterInteractionCenterService());
+                   var masterInteractionCenterService = new MasterInteractionCenterService();
+                    _rpcHttpServer.RegisterService(typeof(IMasterInteractionCenterService), masterInteractionCenterService);
+                    masterInteractionCenterService.Load(rpcClientPool);
                    
                 }
                 else
@@ -236,7 +238,7 @@ namespace WingCloudServer
                 {
                     var serviceInfo = new RemoteServiceInfo() 
                     {
-                        ServiceName="MasterInteractionCenterService",
+                        ServiceName="IMasterInteractionCenterService",
                         Url = ConfigurationManager.MasterUrl
                     };
                     resList.Add(serviceInfo);