Inheritance: BaseClusterAppProtocolHandler
Beispiel #1
0
 public override bool Initialize()
 {
     if (ClientApplicationManager.IsSlave)
     {
         Logger.WARN("Server is in Slave mode");
         var sc = new SlaveClusterAppProtocolHandler(_configuration);
         RegisterAppProtocolHandler(ProtocolTypes.PT_OUTBOUND_CLUSTER, sc);
         SOManager["appList"].Synchronization += sc.OnAppListSynchronization;
     }
     else
     {
         Logger.WARN("Server is in Master mode");
         RegisterAppProtocolHandler(ProtocolTypes.PT_INBOUND_CLUSTER, new MasterClusterAppProtocolHandler(_configuration));
     }
     return true;
 }