Beispiel #1
0
 private static void UnregisterAdapterEndpoints(
     ILocatorRegistryPrx registry,
     string adapterId,
     string replicaGroupId)
 {
     if (registry.Protocol == Protocol.Ice1)
     {
         registry.SetReplicatedAdapterDirectProxy(adapterId, replicaGroupId, null);
     }
     else
     {
         registry.UnregisterAdapterEndpoints(adapterId, replicaGroupId);
     }
 }
Beispiel #2
0
 private static void RegisterAdapterEndpoints(
     ILocatorRegistryPrx registry,
     string adapterId,
     string replicaGroupId,
     IObjectPrx proxy)
 {
     if (proxy.Protocol == Protocol.Ice1)
     {
         registry.SetReplicatedAdapterDirectProxy(adapterId, replicaGroupId, proxy);
     }
     else
     {
         registry.RegisterAdapterEndpoints(adapterId, replicaGroupId, proxy.Endpoints.ToEndpointDataList());
     }
 }