namespace ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Services; /// /// Resolves an instance unique name to its site identifier. /// Used by Inbound API's Route.To() to determine which site to route requests to. /// public interface IInstanceLocator { /// /// Resolves the site identifier for a given instance unique name. /// Returns null if the instance is not found. /// /// System-wide unique name of the instance to look up. /// Cancellation token. /// A task that resolves to the site identifier for the instance, or null if the instance is not found. Task GetSiteIdForInstanceAsync( string instanceUniqueName, CancellationToken cancellationToken = default); }