using System.Collections.Immutable; using Connected.Net; using Connected.Net.Endpoints; using Connected.ServiceModel; using Connected.Services; using Connected.Services.Annotations; namespace Common.Net; internal sealed class EndpointService : EntityService, IEndpointService { public EndpointService(IContext context) : base(context) { } [ServiceAuthorization(NetClaims.NetDiscovery)] public async Task?> Query() { return await Invoke(GetOperation(), Dto.Empty); } [ServiceAuthorization(NetClaims.NetDiscovery)] public async Task Select(PrimaryKeyArgs args) { return await Invoke(GetOperation(), args); } }