using System.Collections.Immutable; using Connected.Security; using Connected.Security.Membership; using Connected.ServiceModel; using Connected.Services; using Connected.Services.Annotations; namespace Common.Security.Membership; internal class MembershipService : EntityService, IMembershipService { public MembershipService(IContext context) : base(context) { } [ServiceAuthorization(SecurityClaims.SecurityDelete)] public async Task Delete(PrimaryKeyArgs args) { await Invoke(GetOperation(), args); } [ServiceAuthorization(SecurityClaims.SecurityRead)] public async Task Insert(MembershipArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(SecurityClaims.SecurityRead)] public async Task?> Query() { return await Invoke(GetOperation(), Dto.Empty); } [ServiceAuthorization(SecurityClaims.SecurityRead)] public async Task?> Query(MembershipQueryArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(SecurityClaims.SecurityRead)] public async Task Select(PrimaryKeyArgs args) { return await Invoke(GetOperation(), args); } }