public async ValueTask FindAdapterByIdAsync( string domainId, string adapterId, ILookupReplyPrx reply, Current current, CancellationToken cancel) { if (domainId != _domainId) { return; // Ignore } (IObjectPrx? proxy, bool isReplicaGroup) = _registryServant.FindAdapter(adapterId); if (proxy != null) { // Reply to the multicast request using the given proxy. try { await reply.FoundAdapterByIdAsync(adapterId, proxy, isReplicaGroup, cancel : cancel). ConfigureAwait(false); } catch (Exception ex) { current.Communicator.Logger.Warning( $"IceDiscovery failed to send foundAdapterById to `{reply}':\n{ex}"); } } }
public void FindAdapterById(string domainId, string adapterId, ILookupReplyPrx?reply, Current current) { if (!domainId.Equals(_domainId)) { return; // Ignore } (IObjectPrx? proxy, bool isReplicaGroup) = _registry.FindAdapter(adapterId); if (proxy != null) { // Reply to the multicast request using the given proxy. try { Debug.Assert(reply != null); reply.FoundAdapterByIdAsync(adapterId, proxy, isReplicaGroup); } catch { // Ignore. } } }