public async ValueTask FindAdapterByIdAsync( string domainId, string adapterId, IFindAdapterByIdReplyPrx 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( $"{_pluginName} failed to send foundAdapterById to `{reply}':\n{ex}"); } } }
public async ValueTask FindAdapterByIdAsync( string domainId, string adapterId, IFindAdapterByIdReplyPrx 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 { if (reply.InvocationMode == InvocationMode.Datagram) { reply = reply.Clone(preferNonSecure: NonSecure.Always); } await reply.FoundAdapterByIdAsync(adapterId, proxy, isReplicaGroup, cancel : cancel). ConfigureAwait(false); } catch (Exception ex) { current.Communicator.Logger.Warning( $"Ice discovery failed to send foundAdapterById to `{reply}':\n{ex}"); } } }