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); } }
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()); } }